跳转到主要内容

Microsoft Azure Storagemover 管理客户端库 for Python

项目描述

Microsoft Azure SDK for Python

这是 Microsoft Azure Storagemover 管理客户端库。此包已与 Python 3.8+ 进行测试。要查看 Azure 库的完整视图,请参阅 azure sdk python 发布

免责声明

Azure SDK Python 包对 Python 2.7 的支持已于 2022 年 1 月 1 日结束。有关更多信息和建议,请参阅 https://github.com/Azure/azure-sdk-for-python/issues/20691

入门

先决条件

安装包

pip install azure-mgmt-storagemover
pip install azure-identity

身份验证

默认情况下,Azure Active Directory 令牌身份验证依赖于以下环境变量的正确配置。

  • AZURE_CLIENT_ID 为 Azure 客户端 ID。
  • AZURE_TENANT_ID 为 Azure 租户 ID。
  • AZURE_CLIENT_SECRET 为 Azure 客户端密钥。

此外,可以通过环境变量 AZURE_SUBSCRIPTION_ID 配置 Azure 订阅 ID。

以上配置后,可以通过以下代码进行客户端认证

from azure.identity import DefaultAzureCredential
from azure.mgmt.storagemover import StorageMoverMgmtClient
import os

sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = StorageMoverMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)

示例

此包的代码示例可以在

故障排除

下一步

提供反馈

如果您遇到任何错误或有任何建议,请在项目的 问题 部分提交问题。

发行历史

2.1.0 (2024-06-17)

新增功能

  • 模型代理新增参数 time_zone
  • 模型代理新增参数 upload_limit_schedule
  • ModelAgentUpdateParameters 新增参数 upload_limit_schedule

2.0.0 (2023-10-23)

新增功能

  • ModelProxyResource 新增参数 system_data
  • ModelResource 新增参数 system_data
  • ModelTrackedResource 新增参数 system_data

重大变更

  • ModelAzureStorageBlobContainerEndpointUpdateProperties 新增必填参数 endpoint_type
  • ModelEndpointBaseUpdateProperties 新增必填参数 endpoint_type
  • ModelNfsMountEndpointUpdateProperties 新增必填参数 endpoint_type

2.0.0b1 (2023-07-21)

新增功能

  • ModelProxyResource 新增参数 system_data
  • ModelResource 新增参数 system_data
  • ModelTrackedResource 新增参数 system_data

重大变更

  • ModelAzureStorageBlobContainerEndpointUpdateProperties 新增必填参数 endpoint_type
  • ModelEndpointBaseUpdateProperties 新增必填参数 endpoint_type
  • ModelNfsMountEndpointUpdateProperties 新增必填参数 endpoint_type

1.0.0 (2023-03-07)

其他更改

  • 第一个 GA 版本

1.0.0b1 (2023-02-20)

  • 初始发布

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。

源分发

azure-mgmt-storagemover-2.1.0.tar.gz (65.2 kB 查看哈希值)

上传时间

构建分发

azure_mgmt_storagemover-2.1.0-py3-none-any.whl (96.5 kB 查看哈希值)

上传时间 Python 3

由以下组织支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面