Skip to content

[AutoPR azure-mgmt-arizeaiobservabilityeval]-generated-from-SDK Generation - Python-5140345 #42224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Release History

## 2.0.0 (2025-07-25)

### Features Added
- Interface ObservabilityEvalClientOptionalParams has a new optional parameter cloudSetting
- Added Type Alias AzureSupportedClouds
- Added Enum AzureClouds
-
## 1.0.0 (2025-05-07)

### Other Changes

- First GA

## 1.0.0b1 (2025-03-31)

### Other Changes

- Initial version
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"commit": "532b1b8f4efdb960efce95c6694164303d79a3fc",
"apiVersion": "2024-10-01",
"commit": "685bc4b1cb39ae8d912762b9f7b62a474bafcae5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/liftrarize/ArizeAi.ObservabilityEval.Management",
"@azure-tools/typespec-python": "0.44.1"
"emitterVersion": "0.47.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0"
VERSION = "1.0.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from collections.abc import MutableMapping
from io import IOBase
import json
from typing import Any, AsyncIterable, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
from typing import Any, AsyncIterator, Callable, Dict, IO, List, Optional, TypeVar, Union, cast, overload
import urllib.parse

from azure.core import AsyncPipelineClient
Expand Down Expand Up @@ -71,7 +71,7 @@ def __init__(self, *args, **kwargs) -> None:
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")

@distributed_trace
def list(self, **kwargs: Any) -> AsyncIterable["_models.Operation"]:
def list(self, **kwargs: Any) -> AsyncItemPaged["_models.Operation"]:
"""List the operations for the provider.

:return: An iterator like instance of Operation
Expand Down Expand Up @@ -763,7 +763,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
@distributed_trace
def list_by_resource_group(
self, resource_group_name: str, **kwargs: Any
) -> AsyncIterable["_models.OrganizationResource"]:
) -> AsyncItemPaged["_models.OrganizationResource"]:
"""List OrganizationResource resources by resource group.

:param resource_group_name: The name of the resource group. The name is case insensitive.
Expand Down Expand Up @@ -852,7 +852,7 @@ async def get_next(next_link=None):
return AsyncItemPaged(get_next, extract_data)

@distributed_trace
def list_by_subscription(self, **kwargs: Any) -> AsyncIterable["_models.OrganizationResource"]:
def list_by_subscription(self, **kwargs: Any) -> AsyncItemPaged["_models.OrganizationResource"]:
"""List OrganizationResource resources by subscription ID.

:return: An iterator like instance of OrganizationResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ class ErrorDetail(_Model):


class ErrorResponse(_Model):
"""Common error response for all Azure Resource Manager APIs to return error details for failed
operations.
"""Error response.

:ivar error: The error object.
:vartype error: ~azure.mgmt.arizeaiobservabilityeval.models.ErrorDetail
Expand Down Expand Up @@ -242,7 +241,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:


class Operation(_Model):
"""Details of a REST API operation, returned from the Resource Provider Operations API.
"""REST API Operation.

:ivar name: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
"Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
Expand Down Expand Up @@ -387,7 +386,7 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:


class Resource(_Model):
"""Common fields that are returned in the response for all Azure Resource Manager resources.
"""Resource.

:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
Expand Down Expand Up @@ -415,8 +414,7 @@ class Resource(_Model):


class TrackedResource(Resource):
"""The resource model definition for an Azure Resource Manager tracked top level resource which
has 'tags' and a 'location'.
"""Tracked Resource.

:ivar id: Fully qualified resource ID for the resource. Ex -
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
Expand Down Expand Up @@ -708,16 +706,16 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
class UserAssignedIdentity(_Model):
"""User assigned identity properties.

:ivar client_id: The client ID of the assigned identity.
:vartype client_id: str
:ivar principal_id: The principal ID of the assigned identity.
:vartype principal_id: str
:ivar client_id: The client ID of the assigned identity.
:vartype client_id: str
"""

client_id: Optional[str] = rest_field(name="clientId", visibility=["read"])
"""The client ID of the assigned identity."""
principal_id: Optional[str] = rest_field(name="principalId", visibility=["read"])
"""The principal ID of the assigned identity."""
client_id: Optional[str] = rest_field(name="clientId", visibility=["read"])
"""The client ID of the assigned identity."""


class UserDetails(_Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from collections.abc import MutableMapping
from io import IOBase
import json
from typing import Any, Callable, Dict, IO, Iterable, Iterator, List, Optional, TypeVar, Union, cast, overload
from typing import Any, Callable, Dict, IO, Iterator, List, Optional, TypeVar, Union, cast, overload
import urllib.parse

from azure.core import PipelineClient
Expand Down Expand Up @@ -245,7 +245,7 @@ class Operations:
:attr:`operations` attribute.
"""

def __init__(self, *args, **kwargs):
def __init__(self, *args, **kwargs) -> None:
input_args = list(args)
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
self._config: ArizeAIObservabilityEvalMgmtClientConfiguration = (
Expand All @@ -255,7 +255,7 @@ def __init__(self, *args, **kwargs):
self._deserialize: Deserializer = input_args.pop(0) if input_args else kwargs.pop("deserializer")

@distributed_trace
def list(self, **kwargs: Any) -> Iterable["_models.Operation"]:
def list(self, **kwargs: Any) -> ItemPaged["_models.Operation"]:
"""List the operations for the provider.

:return: An iterator like instance of Operation
Expand Down Expand Up @@ -348,7 +348,7 @@ class OrganizationsOperations:
:attr:`organizations` attribute.
"""

def __init__(self, *args, **kwargs):
def __init__(self, *args, **kwargs) -> None:
input_args = list(args)
self._client: PipelineClient = input_args.pop(0) if input_args else kwargs.pop("client")
self._config: ArizeAIObservabilityEvalMgmtClientConfiguration = (
Expand Down Expand Up @@ -942,7 +942,7 @@ def get_long_running_output(pipeline_response): # pylint: disable=inconsistent-
@distributed_trace
def list_by_resource_group(
self, resource_group_name: str, **kwargs: Any
) -> Iterable["_models.OrganizationResource"]:
) -> ItemPaged["_models.OrganizationResource"]:
"""List OrganizationResource resources by resource group.

:param resource_group_name: The name of the resource group. The name is case insensitive.
Expand Down Expand Up @@ -1031,7 +1031,7 @@ def get_next(next_link=None):
return ItemPaged(get_next, extract_data)

@distributed_trace
def list_by_subscription(self, **kwargs: Any) -> Iterable["_models.OrganizationResource"]:
def list_by_subscription(self, **kwargs: Any) -> ItemPaged["_models.OrganizationResource"]:
"""List OrganizationResource resources by subscription ID.

:return: An iterator like instance of OrganizationResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,22 @@ def main():
)

response = client.organizations.begin_create_or_update(
resource_group_name="rgopenapi",
organizationname="test-organization-1",
resource_group_name="yashika-rg-arize",
organizationname="test-org-1",
resource={
"identity": {"type": "None", "userAssignedIdentities": {}},
"location": "gigxuxdonjfmqnljxcgctfwqapllu",
"location": "East US",
"properties": {
"marketplace": {
"offerDetails": {
"offerId": "hwhtxmtmmlwsu",
"planId": "jozklohkdpng",
"planName": "clnynwt",
"publisherId": "flrya",
"termId": "iugvvvoggusxuz",
"termUnit": "cbfktammjyqewljjjaokakilog",
"offerId": "arize-liftr-0",
"planId": "liftr-test-0",
"planName": "Liftr Test 0",
"publisherId": "arizeai1657829589668",
"termId": "gmz7xq9ge3py",
"termUnit": "P1M",
},
"subscriptionId": "meaowktoejxwfqomc",
"subscriptionId": "61641157-140c-4b97-b365-30ff76d9f82e",
"subscriptionStatus": "PendingFulfillmentStart",
},
"partnerProperties": {"description": "this is a great description"},
Expand All @@ -58,11 +58,11 @@ def main():
"url": "ihidsswbeahnsjjxxqntz",
},
"user": {
"emailAddress": "btables@arize.com",
"firstName": "aorfffgdmglvzdvfvdyjohtnblzsfw",
"lastName": "tojbqzk",
"emailAddress": "yashikajain@microsoft.com",
"firstName": "",
"lastName": "",
"phoneNumber": "akbqdbs",
"upn": "xzvwwbjpqakqqyfudyp",
"upn": "yashikajain@microsoft.com",
},
},
"tags": {},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def main():
)

client.organizations.begin_delete(
resource_group_name="rgopenapi",
organizationname="test-organization-1",
resource_group_name="yashika-rg-arize",
organizationname="test-org-1",
).result()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def main():
)

response = client.organizations.get(
resource_group_name="rgopenapi",
organizationname="test-organization-1",
resource_group_name="yashika-rg-arize",
organizationname="test-org-1",
)
print(response)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def main():
)

response = client.organizations.list_by_resource_group(
resource_group_name="rgopenapi",
resource_group_name="yashika-rg-arize",
)
for item in response:
print(item)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def main():
)

response = client.organizations.update(
resource_group_name="rgopenapi",
organizationname="test-organization-1",
resource_group_name="yashika-rg-arize",
organizationname="test-org-1",
properties={"identity": {"type": "None", "userAssignedIdentities": {}}, "tags": {}},
)
print(response)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
[tool.azure-sdk-build]
breaking = false
pyright = false
mypy = false
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
directory: specification/liftrarize/ArizeAi.ObservabilityEval.Management
commit: 532b1b8f4efdb960efce95c6694164303d79a3fc
commit: 685bc4b1cb39ae8d912762b9f7b62a474bafcae5
repo: Azure/azure-rest-api-specs
additionalDirectories:
Loading