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
入门
先决条件
- 使用此包需要 Python 3.8+。
- Azure 订阅
安装包
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 查看哈希值)
构建分发
关闭
哈希值 for azure-mgmt-storagemover-2.1.0-py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 2c1be136e490707fc8a7c4603ea0f3696fb014a0f273785e529dd40a7faa98f5 |
|
MD5 | 539be56686fc996fbef7ac79c4492395 |
|
BLAKE2b-256 | af32fa9e5c395ccc8fd593e63e2a2b29215f36e76278bfaa12be46fdbf44bd19 |