Microsoft Azure Desktop Virtualization Management Client Library for Python
项目描述
Microsoft Azure SDK for Python
这是Microsoft Azure桌面虚拟化管理客户端库。此包已在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-desktopvirtualization
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.desktopvirtualization import DesktopVirtualizationMgmtClient
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = DesktopVirtualizationMgmtClient(credential=DefaultAzureCredential(), subscription_id=sub_id)
示例
此包的代码示例可在以下位置找到
故障排除
下一步
提供反馈
如果您遇到任何错误或有一些建议,请在项目的 问题 部分提交问题。
发行历史
2.0.0 (2024-09-23)
新增功能
- 当前版本中,'DesktopVirtualizationMgmtClient' 客户端添加了操作组 'app_attach_package_info'
- 当前版本中,'DesktopVirtualizationMgmtClient' 客户端添加了操作组 'app_attach_package'
- 当前版本中,模型或公开的类 'ExpandMsixImage' 添加了属性 'certificate_name'
- 当前版本中,模型或公开的类 'ExpandMsixImage' 添加了属性 'certificate_expiry'
- 当前版本中,模型或公开的类 'HostPool' 添加了属性 'app_attach_package_references'
- 当前版本中,模型或公开的类 'PrivateEndpointConnection' 添加了属性 'group_ids'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'group_ids'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'private_endpoint'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'private_link_service_connection_state'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'provisioning_state'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'id'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'name'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'type'
- 当前版本中,模型或公开的类 'PrivateEndpointConnectionWithSystemData' 添加了属性 'additional_properties'
- 当前版本中,模型或公开的类 'Resource' 添加了属性 'system_data'
- 当前版本中添加了公开的模型或类 'AppAttachPackage'
- 当前版本中添加了公开的模型或类 'AppAttachPackageArchitectures'
- 当前版本中添加了公开的模型或类 'AppAttachPackageInfoProperties'
- 当前版本中添加了公开的模型或类 'AppAttachPackageList'
- 当前版本中添加了公开的模型或类 'AppAttachPackagePatch'
- 当前版本中添加了公开的模型或类 'AppAttachPackagePatchProperties'
- 当前版本中添加了公开的模型或类 'AppAttachPackageProperties'
- 当前版本中添加了公开的模型或类 'ErrorAdditionalInfo'
- 当前版本中添加了公开的模型或类 'ErrorDetail'
- 当前版本中添加了公开的模型或类 'ErrorResponse'
- 当前版本中添加了公开的模型或类 'FailHealthCheckOnStagingFailure'
- 当前版本中添加了公开的模型或类 'ImportPackageInfoRequest'
- 当前版本中添加了公开的模型或类 'PackageTimestamped'
- 当前版本中添加了公开的模型或类 'ProvisioningState'
- 当前版本中添加了公开的模型或类 'RegistrationTokenList'
- 当前版本中添加了公开的模型或类 'RegistrationTokenMinimal'
- 当前版本中添加了公开的模型或类 'TrackedResource'
- 当前版本中添加了 'HostPoolsOperations' 方法的 'list_registration_tokens' 方法。
- 当前版本中添加了模型或公开的类 'AppAttachPackageInfoOperations'。
- 当前版本中添加了模型或公开的类 'AppAttachPackageOperations'。
重大变更
- 模型
ApplicationGroup
的参数location
现在是必需的。 - 模型
HostPool
的参数location
现在是必需的。 - 模型
ResourceModelWithAllowedPropertySet
的参数location
现在是必需的。 - 模型
ScalingPlan
的参数location
现在是必需的。 - 模型
Workspace
的参数location
现在是必需的。
1.1.0 (2023-10-23)
新增功能
- 添加了操作组 PrivateEndpointConnectionsOperations。
- 添加了操作组 PrivateLinkResourcesOperations。
- 添加了操作组 ScalingPlanPersonalSchedulesOperations。
- 模型 ApplicationGroup 新增参数 show_in_feed。
- 模型 ApplicationGroupPatch 新增参数 show_in_feed。
- 模型 HostPool 新增参数 private_endpoint_connections。
- 模型 HostPool 新增参数 public_network_access。
- 模型 HostPoolPatch 新增参数 public_network_access。
- 模型 Workspace 新增参数 private_endpoint_connections。
- 模型 Workspace 新增参数 public_network_access。
- 模型 WorkspacePatch 新增参数 public_network_access。
1.0.0 (2023-03-20)
其他变更
- 首个GA版本
1.0.0b2 (2022-11-09)
新增功能
- 添加了操作组 ScalingPlanPooledSchedulesOperations。
- 模型 HostPool 新增参数 agent_update。
- 模型 HostPoolPatch 新增参数 agent_update。
- 模型 SessionHost 新增参数 friendly_name。
- 模型 SessionHostPatch 新增参数 friendly_name。
重大变更
- 客户端名称从
DesktopVirtualizationAPIClient
更改为DesktopVirtualizationMgmtClient
。 - 模型 ApplicationGroup 不再具有参数 migration_request。
- 模型 HostPool 不再具有参数 migration_request。
- 模型 HostPool 不再具有参数 public_network_access。
- 模型 HostPoolPatch 不再具有参数 public_network_access。
- 模型 Workspace 不再具有参数 public_network_access。
- 模型 WorkspacePatch 不再具有参数 public_network_access。
- 操作 ApplicationGroupsOperations.list 新增参数 initial_skip。
- 操作 ApplicationGroupsOperations.list 新增参数 is_descending。
- 操作 ApplicationGroupsOperations.list 新增参数 page_size。
- 操作 ApplicationsOperations.list 新增参数 initial_skip。
- 操作 ApplicationsOperations.list 新增参数 is_descending。
- 操作 ApplicationsOperations.list 新增参数 page_size。
- 操作 DesktopsOperations.list 新增参数 initial_skip。
- 操作 DesktopsOperations.list 新增参数 is_descending。
- 操作 DesktopsOperations.list 新增参数 page_size。
- 操作 HostPoolsOperations.list 新增参数 initial_skip。
- 操作 HostPoolsOperations.list 新增参数 is_descending。
- 操作 HostPoolsOperations.list 新增参数 page_size。
- 操作 HostPoolsOperations.list_by_resource_group 新增参数 initial_skip。
- 操作 HostPoolsOperations.list_by_resource_group 新增参数 is_descending。
- 操作 HostPoolsOperations.list_by_resource_group 新增参数 page_size。
- 操作 MSIXPackagesOperations.list 新增参数 initial_skip。
- 操作 MSIXPackagesOperations.list 新增参数 is_descending。
- 操作 MSIXPackagesOperations.list 新增参数 page_size。
- 操作 ScalingPlansOperations.list_by_host_pool 新增参数 initial_skip。
- 操作 ScalingPlansOperations.list_by_host_pool 新增参数 is_descending。
- 操作 ScalingPlansOperations.list_by_host_pool 新增参数 page_size。
- 操作 ScalingPlansOperations.list_by_resource_group 新增参数 initial_skip。
- 操作 ScalingPlansOperations.list_by_resource_group 新增参数 is_descending。
- 操作 ScalingPlansOperations.list_by_resource_group 新增参数 page_size。
- 操作 ScalingPlansOperations.list_by_subscription 新增参数 initial_skip。
- 操作 ScalingPlansOperations.list_by_subscription 新增参数 is_descending。
- 操作 ScalingPlansOperations.list_by_subscription 新增了参数 page_size
- 操作 SessionHostsOperations.list 新增了参数 initial_skip
- 操作 SessionHostsOperations.list 新增了参数 is_descending
- 操作 SessionHostsOperations.list 新增了参数 page_size
- 操作 StartMenuItemsOperations.list 新增了参数 initial_skip
- 操作 StartMenuItemsOperations.list 新增了参数 is_descending
- 操作 StartMenuItemsOperations.list 新增了参数 page_size
- 操作 UserSessionsOperations.list 新增了参数 initial_skip
- 操作 UserSessionsOperations.list 新增了参数 is_descending
- 操作 UserSessionsOperations.list 新增了参数 page_size
- 操作 UserSessionsOperations.list_by_host_pool 新增了参数 initial_skip
- 操作 UserSessionsOperations.list_by_host_pool 新增了参数 is_descending
- 操作 UserSessionsOperations.list_by_host_pool 新增了参数 page_size
- 操作 WorkspacesOperations.list_by_resource_group 新增了参数 initial_skip
- 操作 WorkspacesOperations.list_by_resource_group 新增了参数 is_descending
- 操作 WorkspacesOperations.list_by_resource_group 新增了参数 page_size
- 模型 ScalingPlan 中的参数 time_zone 现在是必需的
- 移除了操作组 PrivateEndpointConnectionsOperations
- 移除了操作组 PrivateLinkResourcesOperations
1.0.0b1 (2021-11-11)
- 初始发布
项目详情
关闭
azure_mgmt_desktopvirtualization-2.0.0.tar.gz 的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | e62e9fad9c4b00a4fd6a918ee2d3d9c174554d7de075a63e1de41307ae430c0d |
|
MD5 | de4c6300cb7df210c774f00d291b0dd0 |
|
BLAKE2b-256 | 39fc4c3d86ded9e112060cbc1f73103db530c4e6a7ef2aeb07045128102b3345 |
关闭
azure_mgmt_desktopvirtualization-2.0.0-py3-none-any.whl 的哈希
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b180e6d421992a11aa535b568cbb3d527a32da6810c64b8fe17c1b587bac6558 |
|
MD5 | cdf6baf9d6a33934a73b926dda2724cb |
|
BLAKE2b-256 | c0da5a7b29fb2d73fdb4823d9efe841cc7851c744402faeab4f09084a5378aaa |