跳转到主要内容

Microsoft Azure Containerservicefleet 管理客户端库(Python版)

项目描述

Microsoft Azure SDK for Python

这是Microsoft Azure Containerservicefleet 管理客户端库。此包已在Python 3.8+上进行测试。有关Azure库的更完整视图,请参阅azure sdk python release

免责声明

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

入门

先决条件

安装包

pip install azure-mgmt-containerservicefleet
pip install azure-identity

身份验证

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

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

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

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

from azure.identity import DefaultAzureCredential
from azure.mgmt.containerservicefleet import ContainerServiceFleetMgmtClient
import os

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

示例

此包的代码示例可在以下位置找到

故障排除

下一步

提供反馈

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

版本历史

2.0.0 (2024-05-20)

重大更改

  • 模型APIServerAccessProfile不再有参数enable_vnet_integration
  • 模型APIServerAccessProfile不再有参数subnet_id

1.1.0 (2024-04-03)

新增功能

  • 新增操作UpdateRunsOperations.begin_skip
  • 模型Fleet有一个新的参数hub_profile

1.0.0 (2023-10-27)

重大更改

  • 模型Fleet不再有参数hub_profile

1.0.0b3 (2023-10-23)

新增功能

  • 添加操作组FleetUpdateStrategiesOperations
  • 模型AgentProfile有一个新的参数vm_size
  • 模型FleetHubProfile有一个新的参数portal_fqdn
  • 模型UpdateRun有一个新的参数update_strategy_id

1.0.0b2 (2023-09-12)

新增功能

  • 模型Fleet有一个新的参数identity
  • 模型FleetHubProfile有一个新的参数agent_profile
  • 模型FleetHubProfile有一个新的参数api_server_access_profile
  • 模型FleetPatch有一个新的参数identity
  • 模型ManagedClusterUpdate有一个新的参数node_image_selection
  • 模型MemberUpdateStatus有一个新的参数message
  • 模型UpdateRunStatus有一个新的参数node_image_selection

重大更改

  • 将操作FleetMembersOperations.update重命名为FleetMembersOperations.begin_update
  • 将操作FleetsOperations.update重命名为FleetsOperations.begin_update

1.0.0b1 (2023-06-16)

  • 初始发布

项目详情


下载文件

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

源分布

azure-mgmt-containerservicefleet-2.0.0.tar.gz (319.9 kB 查看散列)

上传时间

构建分布

azure_mgmt_containerservicefleet-2.0.0-py3-none-any.whl (518.7 kB 查看散列)

上传时间 Python 3

由以下赞助商支持

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