Skip to content

Commit 136385f

Browse files
updated OPSoutgoingCall and Callinvite (Azure#38278)
* updated OPSoutgoingCall and Callinvite * updated according to pipeline build * revert change in ci.yml * Fixed pylint issue * updated to fix black
1 parent 0eb5e5c commit 136385f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2090
-2224
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
1+
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

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

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,16 @@
5151
DtmfTone,
5252
CallConnectionState,
5353
RecordingState,
54-
VoiceKind
55-
)
56-
from .streaming.models import (
57-
TranscriptionMetadata,
58-
TranscriptionData
54+
VoiceKind,
5955
)
56+
from .streaming.models import TranscriptionMetadata, TranscriptionData
6057

6158
__all__ = [
6259
# clients
6360
"CallAutomationClient",
6461
"CallConnectionClient",
65-
6662
# parser
6763
"StreamingDataParser",
68-
6964
# models for input
7065
"FileSource",
7166
"TextSource",
@@ -74,7 +69,6 @@
7469
"ChannelAffinity",
7570
"MediaStreamingConfiguration",
7671
"TranscriptionConfiguration",
77-
7872
# models for output
7973
"CallConnectionProperties",
8074
"CallParticipant",
@@ -85,7 +79,6 @@
8579
"MuteParticipantResult",
8680
"SendDtmfTonesResult",
8781
"CancelAddParticipantOperationResult",
88-
8982
# common ACS communication identifier
9083
"CommunicationIdentifier",
9184
"PhoneNumberIdentifier",
@@ -95,11 +88,9 @@
9588
"CommunicationIdentifierKind",
9689
"CommunicationCloudEnvironment",
9790
"UnknownIdentifier",
98-
9991
# streaming models
10092
"TranscriptionMetadata",
10193
"TranscriptionData",
102-
10394
# enums
10495
"CallRejectReason",
10596
"RecordingContent",
@@ -114,36 +105,42 @@
114105
"DtmfTone",
115106
"CallConnectionState",
116107
"RecordingState",
117-
"VoiceKind"
108+
"VoiceKind",
118109
]
119110
__version__ = VERSION
120111

121112

122113
def __getattr__(name):
123-
if name == 'CallInvite':
114+
if name == "CallInvite":
124115
warnings.warn(
125116
"CallInvite is deprecated and should not be used. Please pass in keyword arguments directly.",
126-
DeprecationWarning
117+
DeprecationWarning,
127118
)
128119
from ._models import CallInvite
120+
129121
return CallInvite
130-
if name == 'GroupCallLocator':
122+
if name == "GroupCallLocator":
131123
warnings.warn(
132124
"GroupCallLocator is deprecated and should not be used. Please pass in 'group_call_id' directly.",
133-
DeprecationWarning
125+
DeprecationWarning,
134126
)
135127
from ._models import GroupCallLocator
128+
136129
return GroupCallLocator
137-
if name == 'ServerCallLocator':
130+
if name == "ServerCallLocator":
138131
warnings.warn(
139132
"ServerCallLocator is deprecated and should not be used. Please pass in 'server_call_id' directly.",
140-
DeprecationWarning
133+
DeprecationWarning,
141134
)
142135
from ._models import ServerCallLocator
136+
143137
return ServerCallLocator
144-
if name == 'MicrosoftBotIdentifier':
145-
warnings.warn(f"{name} is deprecated and should not be used. Please use 'MicrosoftTeamsAppIdentifier' instead.",
146-
DeprecationWarning)
138+
if name == "MicrosoftBotIdentifier":
139+
warnings.warn(
140+
f"{name} is deprecated and should not be used. Please use 'MicrosoftTeamsAppIdentifier' instead.",
141+
DeprecationWarning,
142+
)
147143
from ._shared.models import _MicrosoftBotIdentifier
144+
148145
return _MicrosoftBotIdentifier
149146
raise AttributeError(f"module 'azure.communication.callautomation' has no attribute {name}")

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
from enum import Enum
77
from azure.core import CaseInsensitiveEnumMeta
88

9+
910
class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1011
V2023_03_06 = "2023-03-06"
1112
V2023_06_15_PREVIEW = "2023-06-15-preview"
1213
V2023_10_15 = "2023-10-15"
1314
V2023_10_03_PREVIEW = "2023-10-03-preview"
1415
V2024_04_15 = "2024-04-15"
1516

17+
1618
DEFAULT_VERSION = ApiVersion.V2023_10_03_PREVIEW.value

0 commit comments

Comments
 (0)