Skip to content

Commit a8d8b09

Browse files
[AutoRelease] t2-arizeaiobservabilityeval-2025-05-07-52006(can only be merged by SDK owner) (Azure#40946)
* code and test * Update CHANGELOG.md --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 4f8929f commit a8d8b09

28 files changed

+3394
-107
lines changed

sdk/arizeaiobservabilityeval/azure-mgmt-arizeaiobservabilityeval/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-07)
4+
5+
### Other Changes
6+
7+
- First GA
8+
39
## 1.0.0b1 (2025-03-31)
410

511
### Other Changes

sdk/arizeaiobservabilityeval/azure-mgmt-arizeaiobservabilityeval/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Arizeaiobservabilityeval Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "1b47f62ee9da78db7e011c709c48ecd700095a5a",
2+
"commit": "532b1b8f4efdb960efce95c6694164303d79a3fc",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/liftrarize/ArizeAi.ObservabilityEval.Management",
5-
"@azure-tools/typespec-python": "0.41.0"
5+
"@azure-tools/typespec-python": "0.44.1"
66
}

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

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

sdk/arizeaiobservabilityeval/azure-mgmt-arizeaiobservabilityeval/azure/mgmt/arizeaiobservabilityeval/_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 ArizeAIObservabilityEvalMgmtClientConfiguration
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 ArizeAIObservabilityEvalMgmtClient:
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-10-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-10-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 = ArizeAIObservabilityEvalMgmtClientConfiguration(
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/arizeaiobservabilityeval/azure-mgmt-arizeaiobservabilityeval/azure/mgmt/arizeaiobservabilityeval/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ class ArizeAIObservabilityEvalMgmtClientConfiguration: # pylint: disable=too-ma
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-10-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-10-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-10-01-preview")
44+
api_version: str = kwargs.pop("api_version", "2024-10-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+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)