diff --git a/sdk/storagemover/azure-mgmt-storagemover/CHANGELOG.md b/sdk/storagemover/azure-mgmt-storagemover/CHANGELOG.md index 2b4bf6c7b4ee..8d3589807122 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/CHANGELOG.md +++ b/sdk/storagemover/azure-mgmt-storagemover/CHANGELOG.md @@ -1,5 +1,52 @@ # Release History +## 3.0.0 (2025-10-09) + +### Features Added + + - Model `StorageMoverMgmtClient` added parameter `cloud_setting` in method `__init__` + - Client `StorageMoverMgmtClient` added method `send_request` + - Model `Endpoint` added property `identity` + - Model `EndpointBaseUpdateParameters` added property `identity` + - Enum `EndpointType` added member `AZURE_MULTI_CLOUD_CONNECTOR` + - Enum `EndpointType` added member `AZURE_STORAGE_NFS_FILE_SHARE` + - Model `StorageMoverUpdateParameters` added property `properties` + - Added model `AgentUpdateProperties` + - Added model `AzureMultiCloudConnectorEndpointProperties` + - Added model `AzureMultiCloudConnectorEndpointUpdateProperties` + - Added model `AzureStorageNfsFileShareEndpointProperties` + - Added model `AzureStorageNfsFileShareEndpointUpdateProperties` + - Added model `JobDefinitionPropertiesSourceTargetMap` + - Added model `JobDefinitionUpdateProperties` + - Added enum `JobType` + - Added model `ManagedServiceIdentity` + - Added enum `ManagedServiceIdentityType` + - Added model `ProjectUpdateProperties` + - Added model `SourceEndpoint` + - Added model `SourceEndpointProperties` + - Added model `SourceTargetMap` + - Added model `StorageMoverUpdateProperties` + - Added model `TargetEndpoint` + - Added model `TargetEndpointProperties` + - Added model `UserAssignedIdentity` + +### Breaking Changes + + - Model `AgentUpdateParameters` deleted or renamed its instance variable `description` + - Model `AgentUpdateParameters` deleted or renamed its instance variable `upload_limit_schedule` + - Model `JobDefinitionUpdateParameters` deleted or renamed its instance variable `description` + - Model `JobDefinitionUpdateParameters` deleted or renamed its instance variable `copy_mode` + - Model `JobDefinitionUpdateParameters` deleted or renamed its instance variable `agent_name` + - Model `ProjectUpdateParameters` deleted or renamed its instance variable `description` + - Model `StorageMoverUpdateParameters` deleted or renamed its instance variable `description` + - Deleted or renamed model `AgentList` + - Deleted or renamed model `EndpointList` + - Deleted or renamed model `JobDefinitionList` + - Deleted or renamed model `JobRunList` + - Deleted or renamed model `ProjectList` + - Deleted or renamed model `StorageMoverList` + - Deleted or renamed model `UploadLimit` + ## 3.0.0 (2025-09-04) ### Features Added diff --git a/sdk/storagemover/azure-mgmt-storagemover/MANIFEST.in b/sdk/storagemover/azure-mgmt-storagemover/MANIFEST.in index 38ef6860fb22..bc70e875c993 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/MANIFEST.in +++ b/sdk/storagemover/azure-mgmt-storagemover/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/storagemover/py.typed +recursive-include tests *.py +recursive-include samples *.py *.md +include azure/__init__.py +include azure/mgmt/__init__.py diff --git a/sdk/storagemover/azure-mgmt-storagemover/_metadata.json b/sdk/storagemover/azure-mgmt-storagemover/_metadata.json index a89fe4014f59..f95bef6a31a1 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/_metadata.json +++ b/sdk/storagemover/azure-mgmt-storagemover/_metadata.json @@ -1,7 +1,7 @@ { "apiVersion": "2025-07-01", - "commit": "af759847e0abab741437d695782ad62d7b2cce14", + "commit": "aae85aa3e7e4fda95ea2d3abac0ba1d8159db214", "repository_url": "https://github.com/Azure/azure-rest-api-specs", "typespec_src": "specification/storagemover/StorageMover.Management", - "emitterVersion": "0.49.0" + "emitterVersion": "0.52.1" } \ No newline at end of file diff --git a/sdk/storagemover/azure-mgmt-storagemover/azure/__init__.py b/sdk/storagemover/azure-mgmt-storagemover/azure/__init__.py index 8db66d3d0f0f..d55ccad1f573 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/azure/__init__.py +++ b/sdk/storagemover/azure-mgmt-storagemover/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/storagemover/azure-mgmt-storagemover/azure/mgmt/__init__.py b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/__init__.py index 8db66d3d0f0f..d55ccad1f573 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/__init__.py +++ b/sdk/storagemover/azure-mgmt-storagemover/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/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/_utils/serialization.py b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/_utils/serialization.py index e81921cbb011..45a3e44e45cb 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/_utils/serialization.py +++ b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/_utils/serialization.py @@ -787,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) diff --git a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/aio/operations/_operations.py b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/aio/operations/_operations.py index b21b07478afc..82da3bdcee5a 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/aio/operations/_operations.py +++ b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/aio/operations/_operations.py @@ -71,10 +71,10 @@ ) from .._configuration import StorageMoverMgmtClientConfiguration -List = list T = TypeVar("T") ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, dict[str, Any]], Any]] JSON = MutableMapping[str, Any] +List = list class Operations: diff --git a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/models/_models.py b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/models/_models.py index 510d0602c1cd..ce3f4a52d496 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/models/_models.py +++ b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/models/_models.py @@ -435,7 +435,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, type=CredentialType.AZURE_KEY_VAULT_SMB, **kwargs) + super().__init__(*args, **kwargs) + self.type = CredentialType.AZURE_KEY_VAULT_SMB # type: ignore class EndpointBaseProperties(_Model): @@ -532,7 +533,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_MULTI_CLOUD_CONNECTOR, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_MULTI_CLOUD_CONNECTOR # type: ignore class EndpointBaseUpdateProperties(_Model): @@ -609,7 +611,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_MULTI_CLOUD_CONNECTOR, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_MULTI_CLOUD_CONNECTOR # type: ignore class AzureStorageBlobContainerEndpointProperties( @@ -656,7 +659,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_STORAGE_BLOB_CONTAINER, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_STORAGE_BLOB_CONTAINER # type: ignore class AzureStorageBlobContainerEndpointUpdateProperties( @@ -688,7 +692,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_STORAGE_BLOB_CONTAINER, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_STORAGE_BLOB_CONTAINER # type: ignore class AzureStorageNfsFileShareEndpointProperties( @@ -733,7 +738,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_STORAGE_NFS_FILE_SHARE, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_STORAGE_NFS_FILE_SHARE # type: ignore class AzureStorageNfsFileShareEndpointUpdateProperties( @@ -765,7 +771,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_STORAGE_NFS_FILE_SHARE, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_STORAGE_NFS_FILE_SHARE # type: ignore class AzureStorageSmbFileShareEndpointProperties( @@ -810,7 +817,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_STORAGE_SMB_FILE_SHARE, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_STORAGE_SMB_FILE_SHARE # type: ignore class AzureStorageSmbFileShareEndpointUpdateProperties( @@ -842,7 +850,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.AZURE_STORAGE_SMB_FILE_SHARE, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.AZURE_STORAGE_SMB_FILE_SHARE # type: ignore class Endpoint(ProxyResource): @@ -1687,7 +1696,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.NFS_MOUNT, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.NFS_MOUNT # type: ignore class NfsMountEndpointUpdateProperties(EndpointBaseUpdateProperties, discriminator="NfsMount"): @@ -1717,7 +1727,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.NFS_MOUNT, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.NFS_MOUNT # type: ignore class Operation(_Model): @@ -2070,7 +2081,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.SMB_MOUNT, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.SMB_MOUNT # type: ignore class SmbMountEndpointUpdateProperties(EndpointBaseUpdateProperties, discriminator="SmbMount"): @@ -2108,7 +2120,8 @@ def __init__(self, mapping: Mapping[str, Any]) -> None: """ def __init__(self, *args: Any, **kwargs: Any) -> None: - super().__init__(*args, endpoint_type=EndpointType.SMB_MOUNT, **kwargs) + super().__init__(*args, **kwargs) + self.endpoint_type = EndpointType.SMB_MOUNT # type: ignore class SourceEndpoint(_Model): diff --git a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/operations/_operations.py b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/operations/_operations.py index 8fedd860b573..cafe96033c8e 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/operations/_operations.py +++ b/sdk/storagemover/azure-mgmt-storagemover/azure/mgmt/storagemover/operations/_operations.py @@ -37,10 +37,10 @@ from .._utils.model_base import SdkJSONEncoder, _deserialize, _failsafe_deserialize from .._utils.serialization import Deserializer, Serializer -List = list 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 diff --git a/sdk/storagemover/azure-mgmt-storagemover/pyproject.toml b/sdk/storagemover/azure-mgmt-storagemover/pyproject.toml index f598b535c149..b39e88739b3a 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/pyproject.toml +++ b/sdk/storagemover/azure-mgmt-storagemover/pyproject.toml @@ -1,3 +1,72 @@ +[build-system] +requires = [ + "setuptools>=77.0.3", + "wheel", +] +build-backend = "setuptools.build_meta" + +[project] +name = "azure-mgmt-storagemover" +authors = [ + { name = "Microsoft Corporation", email = "azpysdkhelp@microsoft.com" }, +] +description = "Microsoft Azure Storagemover Management Client Library for Python" +license = "MIT" +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", +] +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.storagemover._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 @@ -16,3 +85,4 @@ need_msrestazure = false need_azuremgmtcore = true sample_link = "" title = "StorageMoverMgmtClient" +exclude_folders = "" diff --git a/sdk/storagemover/azure-mgmt-storagemover/setup.py b/sdk/storagemover/azure-mgmt-storagemover/setup.py deleted file mode 100644 index 9b04ee31f15c..000000000000 --- a/sdk/storagemover/azure-mgmt-storagemover/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-storagemover" -PACKAGE_PPRINT_NAME = "Storagemover Management" - -# 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", -) diff --git a/sdk/storagemover/azure-mgmt-storagemover/tsp-location.yaml b/sdk/storagemover/azure-mgmt-storagemover/tsp-location.yaml index 98a0f9f3ac99..08518b34e8b9 100644 --- a/sdk/storagemover/azure-mgmt-storagemover/tsp-location.yaml +++ b/sdk/storagemover/azure-mgmt-storagemover/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/storagemover/StorageMover.Management -commit: af759847e0abab741437d695782ad62d7b2cce14 +commit: aae85aa3e7e4fda95ea2d3abac0ba1d8159db214 repo: Azure/azure-rest-api-specs additionalDirectories: