Skip to content
Draft
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,5 +1,9 @@
# Release History

## 1.0.0b3 (2025-12-08)

skip changelog generation for data-plane package and please add changelog manually.

## 1.0.0b2 (2025-11-14)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"apiVersion": "2025-11-15-preview"
"apiVersion": "2025-11-15-preview",
"commit": "2fc7fcc9a50bcea5b3dd9307b80f09c440e385bb",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/cognitiveservices/data-plane/LanguageAnalyzeConversationsAuthoring",
"emitterVersion": "0.54.0"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ class ConversationAuthoringClient(_ConversationAuthoringClientOperationsMixin):
"2025-11-15-preview". Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(self, endpoint: str, credential: Union[AzureKeyCredential, "TokenCredential"], **kwargs: Any) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,95 +4,18 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------
"""Customize generated code here.

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
from typing import Any, TYPE_CHECKING, Union, Optional
from azure.core.credentials import AzureKeyCredential
from ._client import ConversationAuthoringClient as AuthoringClientGenerated
from ._client import ConversationAuthoringProjectClient as AuthoringProjectClientGenerated
from .operations import DeploymentOperations, ExportedModelOperations, ProjectOperations, TrainedModelOperations

if TYPE_CHECKING:
from azure.core.credentials import TokenCredential


class ConversationAuthoringProjectClient(AuthoringProjectClientGenerated):

#: Deployment operations group
deployment: DeploymentOperations
#: Exported model operations group
exported_model: ExportedModelOperations
#: Project operations group
project: ProjectOperations
#: Trained model operations group
trained_model: TrainedModelOperations

def __init__( # pylint: disable=super-init-not-called
self,
endpoint: str,
credential: Union[AzureKeyCredential, "TokenCredential"],
*,
api_version: Optional[str] = None,
project_name: str,
**kwargs: Any,
) -> None:
"""
Initialize a ConversationAuthoringProjectClient.

:param str endpoint: Supported Cognitive Services endpoint, e.g.
``https://<resource>.cognitiveservices.azure.com``.
:param credential: Credential used to authenticate requests to the service.
:type credential: ~azure.core.credentials.AzureKeyCredential or ~azure.core.credentials.TokenCredential
:keyword str api_version: The API version to use for this operation.
Default value is ``2025-11-15-preview``.
Note that overriding this default value may result in unsupported behavior.
:keyword str project_name: The name of the project to scope operations. **Required**.
"""
if api_version is not None:
kwargs["api_version"] = api_version
super().__init__(endpoint=endpoint, credential=credential, project_name=project_name, **kwargs)


class ConversationAuthoringClient(AuthoringClientGenerated):

def __init__(
self,
endpoint: str,
credential: Union[AzureKeyCredential, "TokenCredential"],
*,
api_version: Optional[str] = None,
**kwargs: Any,
) -> None:
"""
Create a ConversationAuthoringClient.

:param str endpoint: Supported Cognitive Services endpoint, e.g.
``https://<resource-name>.api.cognitiveservices.azure.com``.
:param credential: Key or token credential.
:type credential: ~azure.core.credentials.AzureKeyCredential or
~azure.core.credentials.TokenCredential
:keyword str api_version: The API version to use for this operation.
Default value is ``2025-11-15-preview``.
Note that overriding this default value may result in unsupported behavior.
"""
if api_version is not None:
kwargs["api_version"] = api_version
super().__init__(endpoint=endpoint, credential=credential, **kwargs)

def get_project_client(self, project_name: str) -> ConversationAuthoringProjectClient:
return ConversationAuthoringProjectClient(
endpoint=self._config.endpoint,
credential=self._config.credential,
project_name=project_name,
)
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


def patch_sdk():
"""Do not remove from this file.

`patch_sdk` is a last resort escape hatch that allows you to do customizations
you can't accomplish using the techniques described in
https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__ = ["ConversationAuthoringProjectClient", "ConversationAuthoringClient"]
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from datetime import datetime, date, time, timedelta, timezone
from json import JSONEncoder
import xml.etree.ElementTree as ET
from collections.abc import MutableMapping # pylint:disable=import-error
from collections.abc import MutableMapping
from typing_extensions import Self
import isodate
from azure.core.exceptions import DeserializationError
Expand Down Expand Up @@ -640,7 +640,7 @@ def __new__(cls, *args: typing.Any, **kwargs: typing.Any) -> Self:
cls._attr_to_rest_field: dict[str, _RestField] = dict(attr_to_rest_field.items())
cls._calculated.add(f"{cls.__module__}.{cls.__qualname__}")

return super().__new__(cls) # pylint:disable=no-value-for-parameter
return super().__new__(cls)

def __init_subclass__(cls, discriminator: typing.Optional[str] = None) -> None:
for base in cls.__bases__:
Expand Down
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.0b2"
VERSION = "1.0.0b3"
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ class ConversationAuthoringClient(_ConversationAuthoringClientOperationsMixin):
"2025-11-15-preview". Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
"""

def __init__(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,95 +4,18 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------
"""Customize generated code here.

Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
"""
from typing import Any, TYPE_CHECKING, Union, Optional
from azure.core.credentials import AzureKeyCredential
from ._client import ConversationAuthoringClient as AuthoringClientGenerated
from ._client import ConversationAuthoringProjectClient as AuthoringProjectClientGenerated
from .operations import DeploymentOperations, ExportedModelOperations, ProjectOperations, TrainedModelOperations

if TYPE_CHECKING:
from azure.core.credentials_async import AsyncTokenCredential


class ConversationAuthoringProjectClient(AuthoringProjectClientGenerated):

#: Deployment operations group
deployment: DeploymentOperations
#: Exported model operations group
exported_model: ExportedModelOperations
#: Project operations group
project: ProjectOperations
#: Trained model operations group
trained_model: TrainedModelOperations

def __init__(
self,
endpoint: str,
credential: Union[AzureKeyCredential, "AsyncTokenCredential"],
*,
api_version: Optional[str] = None,
project_name: str,
**kwargs: Any,
) -> None:
"""Initialize a ConversationAuthoringProjectClient.

:param str endpoint: Supported Cognitive Services endpoint, e.g.
"https://<resource>.cognitiveservices.azure.com".
:param credential: Credential used to authenticate requests to the service.
:type credential: ~azure.core.credentials.AzureKeyCredential or
~azure.core.credentials_async.AsyncTokenCredential
:keyword str api_version: The API version to use for this operation.
Default value is ``2025-05-15-preview``.
Note that overriding this default value may result in unsupported behavior.
:keyword str project_name: The name of the project to scope operations. Required.
"""
if api_version is not None:
kwargs["api_version"] = api_version
super().__init__(endpoint=endpoint, credential=credential, project_name=project_name, **kwargs)


class ConversationAuthoringClient(AuthoringClientGenerated):

def __init__(
self,
endpoint: str,
credential: Union[AzureKeyCredential, "AsyncTokenCredential"],
*,
api_version: Optional[str] = None,
**kwargs: Any,
) -> None:
"""
Create a ConversationAuthoringClient.

:param str endpoint: Supported Cognitive Services endpoint, e.g.
``https://<resource-name>.api.cognitiveservices.azure.com``.
:param credential: Key or token credential.
:type credential: ~azure.core.credentials.AzureKeyCredential or
~azure.core.credentials_async.AsyncTokenCredential
:keyword str api_version: The API version to use for this operation.
Default value is ``2025-05-15-preview``.
Note that overriding this default value may result in unsupported behavior.
"""
if api_version is not None:
kwargs["api_version"] = api_version
super().__init__(endpoint=endpoint, credential=credential, **kwargs)

def get_project_client(self, project_name: str) -> ConversationAuthoringProjectClient:
return ConversationAuthoringProjectClient(
endpoint=self._config.endpoint,
credential=self._config.credential,
project_name=project_name,
)
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level


def patch_sdk():
"""Do not remove from this file.

`patch_sdk` is a last resort escape hatch that allows you to do customizations
you can't accomplish using the techniques described in
https://aka.ms/azsdk/python/dpcodegen/python/customize
"""


__all__ = ["ConversationAuthoringProjectClient", "ConversationAuthoringClient"]
Loading
Loading