Skip to content

Commit 70e6214

Browse files
author
Vinothini Dharmaraj
committed
updating the autorest
1 parent 02176a1 commit 70e6214

File tree

12 files changed

+173
-34
lines changed

12 files changed

+173
-34
lines changed

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@
5757
RecordingKind,
5858
RecognizeInputType,
5959
MediaStreamingAudioChannelType,
60+
MediaStreamingSubscriptionState,
61+
TranscriptionSubscriptionState,
6062
MediaStreamingContentType,
6163
MediaStreamingTransportType,
6264
TranscriptionTransportType,
65+
TranscriptionResultState,
6366
DtmfTone,
6467
CallConnectionState,
6568
RecordingState,
@@ -121,8 +124,11 @@
121124
"RecordingKind",
122125
"RecognizeInputType",
123126
"MediaStreamingAudioChannelType",
127+
"MediaStreamingSubscriptionState",
124128
"MediaStreamingContentType",
125129
"MediaStreamingTransportType",
130+
"TranscriptionResultState",
131+
"TranscriptionSubscriptionState",
126132
"TranscriptionTransportType",
127133
"DtmfTone",
128134
"CallConnectionState",

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from copy import deepcopy
1010
from typing import Any
11-
from typing_extensions import Self
1211

1312
from azure.core import PipelineClient
1413
from azure.core.credentials import AzureKeyCredential
@@ -109,7 +108,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
109108
def close(self) -> None:
110109
self._client.close()
111110

112-
def __enter__(self) -> Self:
111+
def __enter__(self) -> "AzureCommunicationCallAutomationService":
113112
self._client.__enter__()
114113
return self
115114

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# ------------------------------------
5+
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/_serialization.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ def _json_attemp(data):
144144
# context otherwise.
145145
_LOGGER.critical("Wasn't XML not JSON, failing")
146146
raise DeserializationError("XML is invalid") from err
147-
elif content_type.startswith("text/"):
148-
return data_as_str
149147
raise DeserializationError("Cannot deserialize content-type: {}".format(content_type))
150148

151149
@classmethod
@@ -1443,7 +1441,7 @@ def _deserialize(self, target_obj, data):
14431441
elif isinstance(response, type) and issubclass(response, Enum):
14441442
return self.deserialize_enum(data, response)
14451443

1446-
if data is None or data is CoreNull:
1444+
if data is None:
14471445
return data
14481446
try:
14491447
attributes = response._attribute_map # type: ignore

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from copy import deepcopy
1010
from typing import Any, Awaitable
11-
from typing_extensions import Self
1211

1312
from azure.core import AsyncPipelineClient
1413
from azure.core.credentials import AzureKeyCredential
@@ -112,7 +111,7 @@ def send_request(
112111
async def close(self) -> None:
113112
await self._client.close()
114113

115-
async def __aenter__(self) -> Self:
114+
async def __aenter__(self) -> "AzureCommunicationCallAutomationService":
116115
await self._client.__aenter__()
117116
return self
118117

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# ------------------------------------
5+
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_operations.py

Lines changed: 79 additions & 13 deletions
Large diffs are not rendered by default.

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/aio/operations/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# ------------------------------------
5+
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/models/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# ------------------------------------
5+
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize

sdk/communication/azure-communication-callautomation/azure/communication/callautomation/_generated/operations/_operations.py

Lines changed: 79 additions & 13 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)