Azure / Azure/azure-sdk-for-python

`BatchJobTerminateOptions` only available in private module.

オープン
#47,167 コメント 2 件 リアクション 0 件 担当者 1 名 @xingwu1 が担当を希望しています GitHub で見る
Batch customer-reported needs-team-attention question Service Attention
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
1日 21時間
マージ済み PR(30日)
193

説明

- **Package Name**: azure-batch
- **Package Version**: 15.1.0
- **Operating System**: Ubuntu 24.04
- **Python Version**: 3.13.13

**Describe the bug**
`BatchClient.begin_terminate_job()` takes a `options: Optional[_models._models.BatchJobTerminateOptions] = None,` parameter. However `BatchJobTerminateOptions` is not re-exported in `azure.batch.models` unlike other model classes, so you have to import it from `azure.batch.models._models` which (following python convention) is a private module.

Presumably this is just a missing re-export in `azure/batch/models/__init__.py`.

**To Reproduce**
Steps to reproduce the behavior:
1. Install azure-batch 15.1.0
2. Try to import `BatchJobTerminateOptions`

**Expected behavior**
The `BatchJobTerminateOptions` type should be available in a public module.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
Add any other context about the problem here.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。