Microsoft Azure DevTestLabs Python管理客户端库
项目描述
Microsoft Azure SDK for Python
这是Microsoft Azure DevTestLabs管理客户端库。
Azure资源管理器(ARM)是下一代管理API,它替代了旧版的Azure服务管理(ASM)。
此包已在Python 2.7、3.5、3.6和3.7上进行测试。
有关旧版Azure服务管理(ASM)库的信息,请参阅azure-servicemanagement-legacy库。
有关更完整的Azure库集合,请参阅azure sdk python release。
使用方法
要了解如何使用此包,请参阅快速入门指南
有关文档和参考信息,请参阅Python SDK参考。此包的代码示例可在docs.microsoft.com上的DevTestLabs管理部分找到。有关不同Azure服务的其他代码示例,请访问示例存储库
提供反馈
如果您遇到任何错误或有所建议,请在项目的问题部分提交问题。
发布历史
9.0.0 (2020-12-21)
- GA版本
9.0.0b1 (2020-10-27)
这是一个预览版。有关详细变更日志,请参阅等效的稳定版本4.0.0(https://pypi.ac.cn/project/azure-mgmt-devtestlabs/4.0.0/)
此版本使用下一代代码生成器,引入了重要的破坏性更改,但也引入了重要的新功能(如统一身份验证和异步编程)。
一般破坏性更改
-
凭证系统已完全重做
azure.common.credentials
或msrestazure.azure_active_directory
实例不再受支持,请使用azure-identity
类:[https://pypi.ac.cn/project/azure-identity/](https://pypi.ac.cn/project/azure-identity/)- 将
credentials
参数重命名为credential
-
客户端上的
config
属性不再存在,配置应作为关键字参数传递。例如:MyClient(credential, subscription_id, enable_logging=True)
。有关完整支持的选项集,请参阅azure-core初始化文档中接受的参数 -
不再可以导入
version
模块,请使用__version__
代替 -
之前返回
msrest.polling.LROPoller
的操作现在返回azure.core.polling.LROPoller
,并以begin_
为前缀。 -
异常树已被简化,大多数异常现在为
azure.core.exceptions.HttpResponseError
(已删除CloudError
)。 -
大多数操作关键字参数都已更改。其中一些最明显的变化
raw
已被删除。等效功能可通过使用cls
,一个将提供对内部HTTP响应的访问的回调来找到,适用于高级用户- 有关完整支持的选项,请参阅azure-core请求文档中接受的参数
一般新功能
- 支持使用
typing
进行类型注解。SDKs为mypy就绪。 - 此客户端现在提供稳定和官方的异步支持。检查您的包中的
aio
命名空间以找到异步客户端。 - 此客户端现在原生支持如OpenCensus或OpenTelemetry之类的跟踪库。有关概述,请参阅此跟踪快速入门。
4.0.0 (2019-07-26)
破坏性更改
- 已删除操作ServiceRunnersOperations.list
一般破坏性更改
此版本使用下一代代码生成器,可能会在某些导入中引入破坏性更改。总之,一些模块不正确地可见/可导入,并已重命名。这解决了由使用本不应使用类的使用引起的一些问题。
- DevTestLabsClient不再可以从
azure.mgmt.devtestlabs.dev_test_labs_management_client
导入(从azure.mgmt.devtestlabs
导入的方式与之前相同) - DevTestLabsManagementClientConfiguration的导入已从
azure.mgmt.devtestlabs.dev_test_labs_management_client
移动到azure.mgmt.devtestlabs
- 无法再使用
azure.mgmt.devtestlabs.models.my_class
导入“models”子模块中的模型MyClass
(从azure.mgmt.devtestlabs.models
导入的方式与之前相同) - 从
operations
子模块中导入操作类MyClassOperations
现在无法使用azure.mgmt.devtestlabs.operations.my_class_operations
进行(从azure.mgmt.devtestlabs.operations
导入与之前相同)
最后但同样重要的是,HTTP 连接池现在默认启用。您应始终使用客户端作为上下文管理器,或调用 close(),或每个进程使用不超过一个客户端。
3.0.0 (2019-02-07)
特性
- 模型 NotificationChannel 新增参数 email_recipient
- 模型 NotificationChannel 新增参数 notification_locale
- 模型 ArtifactInstallProperties 新增参数 artifact_title
- 模型 GalleryImage 新增参数 plan_id
- 模型 GalleryImage 新增参数 is_plan_authorized
- 模型 EvaluatePoliciesProperties 新增参数 user_object_id
- 模型 ArtifactInstallPropertiesFragment 新增参数 artifact_title
- 模型 Lab 新增参数 announcement
- 模型 Lab 新增参数 support
- 模型 Lab 新增参数 load_balancer_id
- 模型 Lab 新增参数 mandatory_artifacts_resource_ids_linux
- 模型 Lab 新增参数 extended_properties
- 模型 Lab 新增参数 mandatory_artifacts_resource_ids_windows
- 模型 Lab 新增参数 vm_creation_resource_group
- 模型 Lab 新增参数 environment_permission
- 模型 Lab 新增参数 network_security_group_id
- 模型 Lab 新增参数 public_ip_id
- 模型 NotificationSettingsFragment 新增参数 email_recipient
- 模型 NotificationSettingsFragment 新增参数 notification_locale
- 模型 LabVirtualMachineCreationParameter 新增参数 schedule_parameters
- 模型 LabVirtualMachineCreationParameter 新增参数 compute_id
- 模型 LabVirtualMachineCreationParameter 新增参数 data_disk_parameters
- 模型 LabVirtualMachineCreationParameter 新增参数 last_known_power_state
- 模型 LabVirtualMachineCreationParameter 新增参数 plan_id
- 模型 ShutdownNotificationContent 新增参数 vm_url
- 模型 ShutdownNotificationContent 新增参数 minutes_until_shutdown
- 模型 NotificationSettings 新增参数 email_recipient
- 模型 NotificationSettings 新增参数 notification_locale
- 模型 LabVirtualMachine 新增参数 plan_id
- 模型 LabVirtualMachine 新增参数 schedule_parameters
- 模型 LabVirtualMachine 新增参数 last_known_power_state
- 模型 LabVirtualMachine 新增参数 data_disk_parameters
- 模型 ArmTemplate 新增参数 enabled
- 模型 CustomImage 新增参数 custom_image_plan
- 模型 CustomImage 新增参数 data_disk_storage_info
- 模型 CustomImage 新增参数 is_plan_authorized
- 模型 CustomImage 新增参数 managed_snapshot_id
- 模型 LabVirtualMachineFragment 新增参数 schedule_parameters
- 模型 LabVirtualMachineFragment 新增参数 compute_id
- 模型 LabVirtualMachineFragment 新增参数 data_disk_parameters
- 模型 LabVirtualMachineFragment 新增参数 last_known_power_state
- 模型 LabVirtualMachineFragment 新增参数 plan_id
- 新增操作 DisksOperations.update
- 新增操作 CustomImagesOperations.update
- 新增操作 LabsOperations.import_virtual_machine
- 新增操作 SecretsOperations.update
- 新增操作 EnvironmentsOperations.update
- 新增操作 FormulasOperations.update
- 新增操作 VirtualMachinesOperations.transfer_disks
- 新增操作 VirtualMachinesOperations.un_claim
- 新增操作 VirtualMachinesOperations.resize
- 新增操作 VirtualMachinesOperations.restart
- 新增操作 VirtualMachinesOperations.get_rdp_file_contents
- 新增操作 VirtualMachinesOperations.redeploy
- 新增操作组 ServiceFabricsOperations
- 新增操作组 ServiceFabricSchedulesOperations
破坏性更改
- 模型 VirtualNetworkFragment 不再具有参数 type
- 模型 VirtualNetworkFragment 不再具有参数 id
- 模型 VirtualNetworkFragment 不再具有参数 location
- 模型 VirtualNetworkFragment 不再具有参数 name
- 模型 VirtualNetworkFragment 不再具有参数 external_subnets
- 模型 VirtualNetworkFragment 不再具有参数 provisioning_state
- 模型 VirtualNetworkFragment 不再具有参数 unique_identifier
- 模型 PolicyFragment 不再具有参数 type
- 模型 PolicyFragment 不再具有参数 id
- Model PolicyFragment不再具有location参数
- Model PolicyFragment不再具有name参数
- Model PolicyFragment不再具有unique_identifier参数
- Model PolicyFragment不再具有provisioning_state参数
- Model ArtifactSourceFragment不再具有type参数
- Model ArtifactSourceFragment不再具有id参数
- Model ArtifactSourceFragment不再具有location参数
- Model ArtifactSourceFragment不再具有name参数
- Model ArtifactSourceFragment不再具有unique_identifier参数
- Model ArtifactSourceFragment不再具有provisioning_state参数
- Model LabVirtualMachineCreationParameter不再具有applicable_schedule参数
- Model LabVirtualMachineCreationParameter不再具有compute_vm参数
- Model LabVirtualMachineCreationParameter不再具有unique_identifier参数
- Model LabVirtualMachineCreationParameter不再具有provisioning_state参数
- Model ApplicableScheduleFragment不再具有location参数
- Model ApplicableScheduleFragment不再具有type参数
- Model ApplicableScheduleFragment不再具有id参数
- Model ApplicableScheduleFragment不再具有name参数
- Model ScheduleFragment不再具有type参数
- Model ScheduleFragment不再具有id参数
- Model ScheduleFragment不再具有location参数
- Model ScheduleFragment不再具有name参数
- Model ScheduleFragment不再具有unique_identifier参数
- Model ScheduleFragment不再具有provisioning_state参数
- Model LabVirtualMachineFragment不再具有type参数
- Model LabVirtualMachineFragment不再具有id参数
- Model LabVirtualMachineFragment不再具有compute_vm参数
- Model LabVirtualMachineFragment不再具有location参数
- Model LabVirtualMachineFragment不再具有name参数
- Model LabVirtualMachineFragment不再具有unique_identifier参数
- Model LabVirtualMachineFragment不再具有provisioning_state参数
- Model LabVirtualMachineFragment不再具有applicable_schedule参数
- Model LabFragment有一个新的签名
- Model UserFragment有一个新的签名
- Model NotificationChannelFragment有一个新的签名
2.2.0 (2018-02-15)
- 添加"providers"操作组
2.1.0 (2017-10-25)
- 添加"operations"操作组
2.0.0 (2017-04-27)
- 对名称规范进行重大重构并添加新功能。
- 此轮包现在使用azure wheel扩展构建
1.0.0 (2016-09-13)
- 初始版本
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解更多关于安装包的信息。
源分布
构建分布
哈希值 用于 azure_mgmt_devtestlabs-9.0.0-py2.py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 5fb7fd768e5ca85cd5a6726e94b9d4d2dcd71f7d3c87fdcdc42ad78fcd87e6b2 |
|
MD5 | e2b2926f41be08d97337d4ef68d7d6fb |
|
BLAKE2b-256 | a5fb76a7ed500029a6147d1459f731bfa5e56a4cdb09b139db73eeb6f6a10c02 |