Skip to content

Commit c19aebf

Browse files
AutoPrFromHttpClientPythonAutoPrFromHttpClientPython
authored andcommitted
Regenerate for autorest.python (2025-08-15 10:10:47)
1 parent 4b5467f commit c19aebf

File tree

160 files changed

+566
-503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+566
-503
lines changed

packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/_pyproject_mgmt_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class PyprojectMgmtClient: # pylint: disable=client-accepts-api-version-keyword
3030
3131
:ivar http_success: HttpSuccessOperations operations
3232
:vartype http_success: azure.mgmt.pyproject.operations.HttpSuccessOperations
33-
:param credential: Credential needed for the client to connect to Azure. Required.
34-
:type credential: ~azure.core.credentials.TokenCredential
3533
:param base_url: Service URL. Default value is None.
3634
:type base_url: str
35+
:keyword credential: Credential needed for the client to connect to Azure. Required.
36+
:paramtype credential: ~azure.core.credentials.TokenCredential
3737
"""
3838

39-
def __init__(self, credential: "TokenCredential", base_url: Optional[str] = None, **kwargs: Any) -> None:
40-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
39+
def __init__(self, base_url: Optional[str] = None, *, credential: "TokenCredential", **kwargs: Any) -> None:
40+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
4141
_endpoints = get_arm_endpoints(_cloud)
4242
if not base_url:
4343
base_url = _endpoints["resource_manager"]

packages/autorest.python/samples/specification/azure-mgmt-pyproject/test/azure-mgmt-pyproject/azure/mgmt/pyproject/aio/_pyproject_mgmt_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class PyprojectMgmtClient: # pylint: disable=client-accepts-api-version-keyword
3030
3131
:ivar http_success: HttpSuccessOperations operations
3232
:vartype http_success: azure.mgmt.pyproject.aio.operations.HttpSuccessOperations
33-
:param credential: Credential needed for the client to connect to Azure. Required.
34-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3533
:param base_url: Service URL. Default value is None.
3634
:type base_url: str
35+
:keyword credential: Credential needed for the client to connect to Azure. Required.
36+
:paramtype credential: ~azure.core.credentials_async.AsyncTokenCredential
3737
"""
3838

39-
def __init__(self, credential: "AsyncTokenCredential", base_url: Optional[str] = None, **kwargs: Any) -> None:
40-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
39+
def __init__(self, base_url: Optional[str] = None, *, credential: "AsyncTokenCredential", **kwargs: Any) -> None:
40+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
4141
_endpoints = get_arm_endpoints(_cloud)
4242
if not base_url:
4343
base_url = _endpoints["resource_manager"]

packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/_auto_rest_head_test_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key
3030
3131
:ivar http_success: HttpSuccessOperations operations
3232
:vartype http_success: azure.mgmt.test.operations.HttpSuccessOperations
33-
:param credential: Credential needed for the client to connect to Azure. Required.
34-
:type credential: ~azure.core.credentials.TokenCredential
3533
:param base_url: Service URL. Default value is None.
3634
:type base_url: str
35+
:keyword credential: Credential needed for the client to connect to Azure. Required.
36+
:paramtype credential: ~azure.core.credentials.TokenCredential
3737
"""
3838

39-
def __init__(self, credential: "TokenCredential", base_url: Optional[str] = None, **kwargs: Any) -> None:
40-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
39+
def __init__(self, base_url: Optional[str] = None, *, credential: "TokenCredential", **kwargs: Any) -> None:
40+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
4141
_endpoints = get_arm_endpoints(_cloud)
4242
if not base_url:
4343
base_url = _endpoints["resource_manager"]

packages/autorest.python/samples/specification/azure-mgmt-test/test/azure-mgmt-test/azure/mgmt/test/aio/_auto_rest_head_test_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key
3030
3131
:ivar http_success: HttpSuccessOperations operations
3232
:vartype http_success: azure.mgmt.test.aio.operations.HttpSuccessOperations
33-
:param credential: Credential needed for the client to connect to Azure. Required.
34-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3533
:param base_url: Service URL. Default value is None.
3634
:type base_url: str
35+
:keyword credential: Credential needed for the client to connect to Azure. Required.
36+
:paramtype credential: ~azure.core.credentials_async.AsyncTokenCredential
3737
"""
3838

39-
def __init__(self, credential: "AsyncTokenCredential", base_url: Optional[str] = None, **kwargs: Any) -> None:
40-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
39+
def __init__(self, base_url: Optional[str] = None, *, credential: "AsyncTokenCredential", **kwargs: Any) -> None:
40+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
4141
_endpoints = get_arm_endpoints(_cloud)
4242
if not base_url:
4343
base_url = _endpoints["resource_manager"]

packages/autorest.python/samples/specification/azure_key_credential/generated/azure/key/credential/sample/_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key
2525
2626
:ivar http_success: HttpSuccessOperations operations
2727
:vartype http_success: azure.key.credential.sample.operations.HttpSuccessOperations
28-
:param credential: Credential needed for the client to connect to Azure. Required.
29-
:type credential: ~azure.core.credentials.AzureKeyCredential
28+
:keyword credential: Credential needed for the client to connect to Azure. Required.
29+
:paramtype credential: ~azure.core.credentials.AzureKeyCredential
3030
:keyword endpoint: Service URL. Default value is "http://localhost:3000".
3131
:paramtype endpoint: str
3232
"""
3333

3434
def __init__(
35-
self, credential: AzureKeyCredential, *, endpoint: str = "http://localhost:3000", **kwargs: Any
35+
self, *, credential: AzureKeyCredential, endpoint: str = "http://localhost:3000", **kwargs: Any
3636
) -> None:
3737
self._config = AutoRestHeadTestServiceConfiguration(credential=credential, **kwargs)
3838

packages/autorest.python/samples/specification/azure_key_credential/generated/azure/key/credential/sample/aio/_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key
2525
2626
:ivar http_success: HttpSuccessOperations operations
2727
:vartype http_success: azure.key.credential.sample.aio.operations.HttpSuccessOperations
28-
:param credential: Credential needed for the client to connect to Azure. Required.
29-
:type credential: ~azure.core.credentials.AzureKeyCredential
28+
:keyword credential: Credential needed for the client to connect to Azure. Required.
29+
:paramtype credential: ~azure.core.credentials.AzureKeyCredential
3030
:keyword endpoint: Service URL. Default value is "http://localhost:3000".
3131
:paramtype endpoint: str
3232
"""
3333

3434
def __init__(
35-
self, credential: AzureKeyCredential, *, endpoint: str = "http://localhost:3000", **kwargs: Any
35+
self, *, credential: AzureKeyCredential, endpoint: str = "http://localhost:3000", **kwargs: Any
3636
) -> None:
3737
self._config = AutoRestHeadTestServiceConfiguration(credential=credential, **kwargs)
3838

packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/_auto_rest_head_test_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key
3030
3131
:ivar http_success: HttpSuccessOperations operations
3232
:vartype http_success: azure.mgmt.sample.operations.HttpSuccessOperations
33-
:param credential: Credential needed for the client to connect to Azure. Required.
34-
:type credential: ~azure.core.credentials.TokenCredential
3533
:param base_url: Service URL. Default value is None.
3634
:type base_url: str
35+
:keyword credential: Credential needed for the client to connect to Azure. Required.
36+
:paramtype credential: ~azure.core.credentials.TokenCredential
3737
"""
3838

39-
def __init__(self, credential: "TokenCredential", base_url: Optional[str] = None, **kwargs: Any) -> None:
40-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
39+
def __init__(self, base_url: Optional[str] = None, *, credential: "TokenCredential", **kwargs: Any) -> None:
40+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
4141
_endpoints = get_arm_endpoints(_cloud)
4242
if not base_url:
4343
base_url = _endpoints["resource_manager"]

packages/autorest.python/samples/specification/management/generated/azure/mgmt/sample/aio/_auto_rest_head_test_service.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ class AutoRestHeadTestService: # pylint: disable=client-accepts-api-version-key
3030
3131
:ivar http_success: HttpSuccessOperations operations
3232
:vartype http_success: azure.mgmt.sample.aio.operations.HttpSuccessOperations
33-
:param credential: Credential needed for the client to connect to Azure. Required.
34-
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3533
:param base_url: Service URL. Default value is None.
3634
:type base_url: str
35+
:keyword credential: Credential needed for the client to connect to Azure. Required.
36+
:paramtype credential: ~azure.core.credentials_async.AsyncTokenCredential
3737
"""
3838

39-
def __init__(self, credential: "AsyncTokenCredential", base_url: Optional[str] = None, **kwargs: Any) -> None:
40-
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
39+
def __init__(self, base_url: Optional[str] = None, *, credential: "AsyncTokenCredential", **kwargs: Any) -> None:
40+
_cloud = cloud_setting or settings.current.azure_cloud # type: ignore
4141
_endpoints = get_arm_endpoints(_cloud)
4242
if not base_url:
4343
base_url = _endpoints["resource_manager"]

packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/_multiapi_service_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin, MultiApiClient
7171

7272
def __init__(
7373
self,
74-
credential: "TokenCredential",
7574
api_version: Optional[str]=None,
7675
base_url: Optional[str] = None,
7776
profile: KnownProfiles=KnownProfiles.default,
77+
*,
78+
credential: "TokenCredential",
7879
**kwargs: Any
7980
):
8081
if api_version:

packages/autorest.python/samples/specification/multiapi/generated/azure/multiapi/sample/aio/_multiapi_service_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ class MultiapiServiceClient(MultiapiServiceClientOperationsMixin, MultiApiClient
7171

7272
def __init__(
7373
self,
74-
credential: "AsyncTokenCredential",
7574
api_version: Optional[str] = None,
7675
base_url: Optional[str] = None,
7776
profile: KnownProfiles = KnownProfiles.default,
77+
*,
78+
credential: "AsyncTokenCredential",
7879
**kwargs: Any
7980
) -> None:
8081
if api_version:

0 commit comments

Comments
 (0)