Skip to content

Commit aeb62b9

Browse files
[AutoRelease] t2-lambdatesthyperexecute-2025-05-08-38849(can only be merged by SDK owner) (#40972)
* code and test * Update CHANGELOG.md * Update _version.py * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com>
1 parent f1b2821 commit aeb62b9

27 files changed

+119
-87
lines changed

sdk/lambdatesthyperexecute/azure-mgmt-lambdatesthyperexecute/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release History
22

3+
## 1.0.0 (2025-05-19)
4+
5+
### Other Changes
6+
7+
- First GA
8+
39
## 1.0.0b1 (2025-05-08)
410

511
### Other Changes
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "107def49d48609596e91c3dcc4dc2bec5a4adf30",
2+
"commit": "011ecc5633300a5eefe43dde748f269d39e96458",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/liftrhyperexecute/LambdaTest.HyperExecute.Management",
5-
"@azure-tools/typespec-python": "0.42.3"
5+
"@azure-tools/typespec-python": "0.44.1"
66
}

sdk/lambdatesthyperexecute/azure-mgmt-lambdatesthyperexecute/apiview-properties.json

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,19 @@
2727
"azure.mgmt.lambdatesthyperexecute.models.SingleSignOnType": "LiftrBase.SingleSignOnType",
2828
"azure.mgmt.lambdatesthyperexecute.models.SingleSignOnStates": "LiftrBase.SingleSignOnStates",
2929
"azure.mgmt.lambdatesthyperexecute.models.ManagedServiceIdentityType": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType",
30-
"azure.mgmt.lambdatesthyperexecute.LambdaTestHyperExecuteMgmtClient.operations.list": "Azure.ResourceManager.Operations.list",
31-
"azure.mgmt.lambdatesthyperexecute.LambdaTestHyperExecuteMgmtClient.organizations.get": "LambdaTest.HyperExecute.Organizations.get",
32-
"azure.mgmt.lambdatesthyperexecute.LambdaTestHyperExecuteMgmtClient.organizations.begin_create_or_update": "LambdaTest.HyperExecute.Organizations.createOrUpdate",
33-
"azure.mgmt.lambdatesthyperexecute.LambdaTestHyperExecuteMgmtClient.organizations.update": "LambdaTest.HyperExecute.Organizations.update",
34-
"azure.mgmt.lambdatesthyperexecute.LambdaTestHyperExecuteMgmtClient.organizations.begin_delete": "LambdaTest.HyperExecute.Organizations.delete",
35-
"azure.mgmt.lambdatesthyperexecute.LambdaTestHyperExecuteMgmtClient.organizations.list_by_resource_group": "LambdaTest.HyperExecute.Organizations.listByResourceGroup",
36-
"azure.mgmt.lambdatesthyperexecute.LambdaTestHyperExecuteMgmtClient.organizations.list_by_subscription": "LambdaTest.HyperExecute.Organizations.listBySubscription"
30+
"azure.mgmt.lambdatesthyperexecute.operations.Operations.list": "Azure.ResourceManager.Operations.list",
31+
"azure.mgmt.lambdatesthyperexecute.aio.operations.Operations.list": "Azure.ResourceManager.Operations.list",
32+
"azure.mgmt.lambdatesthyperexecute.operations.OrganizationsOperations.get": "LambdaTest.HyperExecute.Organizations.get",
33+
"azure.mgmt.lambdatesthyperexecute.aio.operations.OrganizationsOperations.get": "LambdaTest.HyperExecute.Organizations.get",
34+
"azure.mgmt.lambdatesthyperexecute.operations.OrganizationsOperations.begin_create_or_update": "LambdaTest.HyperExecute.Organizations.createOrUpdate",
35+
"azure.mgmt.lambdatesthyperexecute.aio.operations.OrganizationsOperations.begin_create_or_update": "LambdaTest.HyperExecute.Organizations.createOrUpdate",
36+
"azure.mgmt.lambdatesthyperexecute.operations.OrganizationsOperations.update": "LambdaTest.HyperExecute.Organizations.update",
37+
"azure.mgmt.lambdatesthyperexecute.aio.operations.OrganizationsOperations.update": "LambdaTest.HyperExecute.Organizations.update",
38+
"azure.mgmt.lambdatesthyperexecute.operations.OrganizationsOperations.begin_delete": "LambdaTest.HyperExecute.Organizations.delete",
39+
"azure.mgmt.lambdatesthyperexecute.aio.operations.OrganizationsOperations.begin_delete": "LambdaTest.HyperExecute.Organizations.delete",
40+
"azure.mgmt.lambdatesthyperexecute.operations.OrganizationsOperations.list_by_resource_group": "LambdaTest.HyperExecute.Organizations.listByResourceGroup",
41+
"azure.mgmt.lambdatesthyperexecute.aio.operations.OrganizationsOperations.list_by_resource_group": "LambdaTest.HyperExecute.Organizations.listByResourceGroup",
42+
"azure.mgmt.lambdatesthyperexecute.operations.OrganizationsOperations.list_by_subscription": "LambdaTest.HyperExecute.Organizations.listBySubscription",
43+
"azure.mgmt.lambdatesthyperexecute.aio.operations.OrganizationsOperations.list_by_subscription": "LambdaTest.HyperExecute.Organizations.listBySubscription"
3744
}
3845
}

sdk/lambdatesthyperexecute/azure-mgmt-lambdatesthyperexecute/azure/mgmt/lambdatesthyperexecute/_client.py

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,18 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from ._configuration import LambdaTestHyperExecuteMgmtClientConfiguration
19-
from ._serialization import Deserializer, Serializer
21+
from ._utils.serialization import Deserializer, Serializer
2022
from .operations import Operations, OrganizationsOperations
2123

2224
if TYPE_CHECKING:
@@ -34,27 +36,32 @@ class LambdaTestHyperExecuteMgmtClient:
3436
:type credential: ~azure.core.credentials.TokenCredential
3537
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3638
:type subscription_id: str
37-
:param base_url: Service host. Default value is "https://management.azure.com".
39+
:param base_url: Service host. Default value is None.
3840
:type base_url: str
39-
:keyword api_version: The API version to use for this operation. Default value is
40-
"2024-02-01-preview". Note that overriding this default value may result in unsupported
41-
behavior.
41+
:keyword api_version: The API version to use for this operation. Default value is "2024-02-01".
42+
Note that overriding this default value may result in unsupported behavior.
4243
:paramtype api_version: str
4344
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4445
Retry-After header is present.
4546
"""
4647

4748
def __init__(
48-
self,
49-
credential: "TokenCredential",
50-
subscription_id: str,
51-
base_url: str = "https://management.azure.com",
52-
**kwargs: Any
49+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
5350
) -> None:
5451
_endpoint = "{endpoint}"
52+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
53+
_endpoints = get_arm_endpoints(_cloud)
54+
if not base_url:
55+
base_url = _endpoints["resource_manager"]
56+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
5557
self._config = LambdaTestHyperExecuteMgmtClientConfiguration(
56-
credential=credential, subscription_id=subscription_id, base_url=base_url, **kwargs
58+
credential=credential,
59+
subscription_id=subscription_id,
60+
base_url=cast(str, base_url),
61+
credential_scopes=credential_scopes,
62+
**kwargs
5763
)
64+
5865
_policies = kwargs.pop("policies", None)
5966
if _policies is None:
6067
_policies = [
@@ -73,7 +80,7 @@ def __init__(
7380
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
7481
self._config.http_logging_policy,
7582
]
76-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=_endpoint, policies=_policies, **kwargs)
83+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, _endpoint), policies=_policies, **kwargs)
7784

7885
self._serialize = Serializer()
7986
self._deserialize = Deserializer()

sdk/lambdatesthyperexecute/azure-mgmt-lambdatesthyperexecute/azure/mgmt/lambdatesthyperexecute/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class LambdaTestHyperExecuteMgmtClientConfiguration: # pylint: disable=too-many
2929
:type subscription_id: str
3030
:param base_url: Service host. Default value is "https://management.azure.com".
3131
:type base_url: str
32-
:keyword api_version: The API version to use for this operation. Default value is
33-
"2024-02-01-preview". Note that overriding this default value may result in unsupported
34-
behavior.
32+
:keyword api_version: The API version to use for this operation. Default value is "2024-02-01".
33+
Note that overriding this default value may result in unsupported behavior.
3534
:paramtype api_version: str
3635
"""
3736

@@ -42,7 +41,7 @@ def __init__(
4241
base_url: str = "https://management.azure.com",
4342
**kwargs: Any
4443
) -> None:
45-
api_version: str = kwargs.pop("api_version", "2024-02-01-preview")
44+
api_version: str = kwargs.pop("api_version", "2024-02-01")
4645

4746
if credential is None:
4847
raise ValueError("Parameter 'credential' must not be None.")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) Python Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

sdk/lambdatesthyperexecute/azure-mgmt-lambdatesthyperexecute/azure/mgmt/lambdatesthyperexecute/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "1.0.0b1"
9+
VERSION = "1.0.0"

sdk/lambdatesthyperexecute/azure-mgmt-lambdatesthyperexecute/azure/mgmt/lambdatesthyperexecute/aio/_client.py

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, Awaitable, TYPE_CHECKING
10+
from typing import Any, Awaitable, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import AsyncHttpResponse, HttpRequest
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import AsyncARMPipelineClient
1617
from azure.mgmt.core.policies import AsyncARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

18-
from .._serialization import Deserializer, Serializer
20+
from .._utils.serialization import Deserializer, Serializer
1921
from ._configuration import LambdaTestHyperExecuteMgmtClientConfiguration
2022
from .operations import Operations, OrganizationsOperations
2123

@@ -35,27 +37,32 @@ class LambdaTestHyperExecuteMgmtClient:
3537
:type credential: ~azure.core.credentials_async.AsyncTokenCredential
3638
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3739
:type subscription_id: str
38-
:param base_url: Service host. Default value is "https://management.azure.com".
40+
:param base_url: Service host. Default value is None.
3941
:type base_url: str
40-
:keyword api_version: The API version to use for this operation. Default value is
41-
"2024-02-01-preview". Note that overriding this default value may result in unsupported
42-
behavior.
42+
:keyword api_version: The API version to use for this operation. Default value is "2024-02-01".
43+
Note that overriding this default value may result in unsupported behavior.
4344
:paramtype api_version: str
4445
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
4546
Retry-After header is present.
4647
"""
4748

4849
def __init__(
49-
self,
50-
credential: "AsyncTokenCredential",
51-
subscription_id: str,
52-
base_url: str = "https://management.azure.com",
53-
**kwargs: Any
50+
self, credential: "AsyncTokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
5451
) -> None:
5552
_endpoint = "{endpoint}"
53+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
54+
_endpoints = get_arm_endpoints(_cloud)
55+
if not base_url:
56+
base_url = _endpoints["resource_manager"]
57+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
5658
self._config = LambdaTestHyperExecuteMgmtClientConfiguration(
57-
credential=credential, subscription_id=subscription_id, base_url=base_url, **kwargs
59+
credential=credential,
60+
subscription_id=subscription_id,
61+
base_url=cast(str, base_url),
62+
credential_scopes=credential_scopes,
63+
**kwargs
5864
)
65+
5966
_policies = kwargs.pop("policies", None)
6067
if _policies is None:
6168
_policies = [
@@ -74,7 +81,9 @@ def __init__(
7481
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
7582
self._config.http_logging_policy,
7683
]
77-
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(base_url=_endpoint, policies=_policies, **kwargs)
84+
self._client: AsyncARMPipelineClient = AsyncARMPipelineClient(
85+
base_url=cast(str, _endpoint), policies=_policies, **kwargs
86+
)
7887

7988
self._serialize = Serializer()
8089
self._deserialize = Deserializer()

0 commit comments

Comments
 (0)