Skip to content

BatchJobTerminateOptions only available in private module. #47167

@arvid-norlander

Description

@arvid-norlander
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions