Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 0 additions & 8 deletions .chronus/changes/azsdk-pool-2025-5-25-15-4-16.md

This file was deleted.

8 changes: 0 additions & 8 deletions .chronus/changes/optionsCleanup-2025-6-2-11-51-32.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/autorest.python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release

## 6.36.0

### Features

- Make mixin operations classes private to remove from documentation


## 6.35.5

No changes, version bump only.
Expand Down
6 changes: 3 additions & 3 deletions packages/autorest.python/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@autorest/python",
"version": "6.35.5",
"version": "6.36.0",
"description": "The Python extension for generators in AutoRest.",
"scripts": {
"start": "node ./scripts/run-python3.js ./scripts/start.py",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "0.13.0-dev.3",
"@typespec/http-client-python": "~0.13.0",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
from azure.core.rest import HttpRequest, HttpResponse

from ._configuration import PollingPagingExampleConfiguration
from ._operations import PollingPagingExampleOperationsMixin
from ._operations._operations import _PollingPagingExampleOperationsMixin
from ._utils.serialization import Deserializer, Serializer


class PollingPagingExample(PollingPagingExampleOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class PollingPagingExample(_PollingPagingExampleOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""Show polling and paging generation.

:keyword endpoint: Service URL. Default value is "http://localhost:3000".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._operations import PollingPagingExampleOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"PollingPagingExampleOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def build_polling_paging_example_basic_paging_request(**kwargs: Any) -> HttpRequ
return HttpRequest(method="GET", url=_url, headers=_headers, **kwargs)


class PollingPagingExampleOperationsMixin(
class _PollingPagingExampleOperationsMixin(
ClientMixinABC[PipelineClient[HttpRequest, HttpResponse], PollingPagingExampleConfiguration]
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

from .._utils.serialization import Deserializer, Serializer
from ._configuration import PollingPagingExampleConfiguration
from ._operations import PollingPagingExampleOperationsMixin
from ._operations._operations import _PollingPagingExampleOperationsMixin


class PollingPagingExample(PollingPagingExampleOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class PollingPagingExample(_PollingPagingExampleOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""Show polling and paging generation.

:keyword endpoint: Service URL. Default value is "http://localhost:3000".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._operations import PollingPagingExampleOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"PollingPagingExampleOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]


class PollingPagingExampleOperationsMixin(
class _PollingPagingExampleOperationsMixin(
ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], PollingPagingExampleConfiguration]
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ def test_poll_with_constant_parameterized_endpoints(client):


def test_operation_groups():
from lrowithparameterizedendpoints.operations import LROWithParamaterizedEndpointsOperationsMixin
from lrowithparameterizedendpoints.operations._lro_with_paramaterized_endpoints_operations import (
_LROWithParamaterizedEndpointsOperationsMixin,
)

with pytest.raises(ImportError):
from lrowithparameterizedendpoints.operations import _lro_with_paramaterized_endpoints_operations_py3

from lrowithparameterizedendpoints.operations._lro_with_paramaterized_endpoints_operations import (
LROWithParamaterizedEndpointsOperationsMixin as LROWithParamaterizedEndpointsOperationsMixinPy2,
_LROWithParamaterizedEndpointsOperationsMixin as _LROWithParamaterizedEndpointsOperationsMixinPy2,
)

assert LROWithParamaterizedEndpointsOperationsMixin == LROWithParamaterizedEndpointsOperationsMixinPy2
assert _LROWithParamaterizedEndpointsOperationsMixin == _LROWithParamaterizedEndpointsOperationsMixinPy2
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from . import models as _models
from ._configuration import AutoRestReportServiceForAzureConfiguration
from ._utils.serialization import Deserializer, Serializer
from .operations import AutoRestReportServiceForAzureOperationsMixin
from .operations._auto_rest_report_service_for_azure_operations import _AutoRestReportServiceForAzureOperationsMixin


class AutoRestReportServiceForAzure(
AutoRestReportServiceForAzureOperationsMixin
_AutoRestReportServiceForAzureOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
"""Test Infrastructure for AutoRest.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from .. import models as _models
from .._utils.serialization import Deserializer, Serializer
from ._configuration import AutoRestReportServiceForAzureConfiguration
from .operations import AutoRestReportServiceForAzureOperationsMixin
from .operations._auto_rest_report_service_for_azure_operations import _AutoRestReportServiceForAzureOperationsMixin


class AutoRestReportServiceForAzure(
AutoRestReportServiceForAzureOperationsMixin
_AutoRestReportServiceForAzureOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
"""Test Infrastructure for AutoRest.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._auto_rest_report_service_for_azure_operations import AutoRestReportServiceForAzureOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AutoRestReportServiceForAzureOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]


class AutoRestReportServiceForAzureOperationsMixin( # pylint: disable=name-too-long
class _AutoRestReportServiceForAzureOperationsMixin(
ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], AutoRestReportServiceForAzureConfiguration]
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._auto_rest_report_service_for_azure_operations import AutoRestReportServiceForAzureOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AutoRestReportServiceForAzureOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def build_get_report_request(*, qualifier: Optional[str] = None, **kwargs: Any)
return HttpRequest(method="GET", url=_url, params=_params, headers=_headers, **kwargs)


class AutoRestReportServiceForAzureOperationsMixin( # pylint: disable=name-too-long
class _AutoRestReportServiceForAzureOperationsMixin(
ClientMixinABC[PipelineClient[HttpRequest, HttpResponse], AutoRestReportServiceForAzureConfiguration]
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from . import models as _models
from ._configuration import LROWithParamaterizedEndpointsConfiguration
from ._utils.serialization import Deserializer, Serializer
from .operations import LROWithParamaterizedEndpointsOperationsMixin
from .operations._lro_with_paramaterized_endpoints_operations import _LROWithParamaterizedEndpointsOperationsMixin


class LROWithParamaterizedEndpoints(
LROWithParamaterizedEndpointsOperationsMixin
_LROWithParamaterizedEndpointsOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
"""Test Infrastructure for AutoRest.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
from .. import models as _models
from .._utils.serialization import Deserializer, Serializer
from ._configuration import LROWithParamaterizedEndpointsConfiguration
from .operations import LROWithParamaterizedEndpointsOperationsMixin
from .operations._lro_with_paramaterized_endpoints_operations import _LROWithParamaterizedEndpointsOperationsMixin


class LROWithParamaterizedEndpoints(
LROWithParamaterizedEndpointsOperationsMixin
_LROWithParamaterizedEndpointsOperationsMixin
): # pylint: disable=client-accepts-api-version-keyword
"""Test Infrastructure for AutoRest.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._lro_with_paramaterized_endpoints_operations import LROWithParamaterizedEndpointsOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"LROWithParamaterizedEndpointsOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]


class LROWithParamaterizedEndpointsOperationsMixin( # pylint: disable=name-too-long
class _LROWithParamaterizedEndpointsOperationsMixin(
ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], LROWithParamaterizedEndpointsConfiguration]
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._lro_with_paramaterized_endpoints_operations import LROWithParamaterizedEndpointsOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"LROWithParamaterizedEndpointsOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def build_poll_with_constant_parameterized_endpoints_request( # pylint: disable
return HttpRequest(method="POST", url=_url, headers=_headers, **kwargs)


class LROWithParamaterizedEndpointsOperationsMixin( # pylint: disable=name-too-long
class _LROWithParamaterizedEndpointsOperationsMixin(
ClientMixinABC[PipelineClient[HttpRequest, HttpResponse], LROWithParamaterizedEndpointsConfiguration]
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

from ._configuration import AutorestSecurityAadConfiguration
from ._utils.serialization import Deserializer, Serializer
from .operations import AutorestSecurityAadOperationsMixin
from .operations._autorest_security_aad_operations import _AutorestSecurityAadOperationsMixin

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential


class AutorestSecurityAad(AutorestSecurityAadOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class AutorestSecurityAad(_AutorestSecurityAadOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""Autorest Security Aad REST APIs.

:param credential: Credential needed for the client to connect to Azure. Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@

from .._utils.serialization import Deserializer, Serializer
from ._configuration import AutorestSecurityAadConfiguration
from .operations import AutorestSecurityAadOperationsMixin
from .operations._autorest_security_aad_operations import _AutorestSecurityAadOperationsMixin

if TYPE_CHECKING:
from azure.core.credentials_async import AsyncTokenCredential


class AutorestSecurityAad(AutorestSecurityAadOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
class AutorestSecurityAad(_AutorestSecurityAadOperationsMixin): # pylint: disable=client-accepts-api-version-keyword
"""Autorest Security Aad REST APIs.

:param credential: Credential needed for the client to connect to Azure. Required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._autorest_security_aad_operations import AutorestSecurityAadOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AutorestSecurityAadOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]


class AutorestSecurityAadOperationsMixin(
class _AutorestSecurityAadOperationsMixin(
ClientMixinABC[AsyncPipelineClient[HttpRequest, AsyncHttpResponse], AutorestSecurityAadConfiguration]
):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._autorest_security_aad_operations import AutorestSecurityAadOperationsMixin # type: ignore

from ._patch import __all__ as _patch_all
from ._patch import *
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"AutorestSecurityAadOperationsMixin",
]
__all__ = []
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def build_head_request(**kwargs: Any) -> HttpRequest:
return HttpRequest(method="HEAD", url=_url, **kwargs)


class AutorestSecurityAadOperationsMixin(
class _AutorestSecurityAadOperationsMixin(
ClientMixinABC[PipelineClient[HttpRequest, HttpResponse], AutorestSecurityAadConfiguration]
):

Expand Down
Loading
Loading