Skip to content

Commit b9e0b17

Browse files
Move CallAutomation GA3 Changes to ALPHA3 (#35650)
* init commit * swagger generation * added RecordingStorageKind * changed CHANGELOG * removed unused import * fixed callautomation linter issues * fixed jobrouter and phonenumber linting issues
1 parent 8042a55 commit b9e0b17

File tree

18 files changed

+1115
-351
lines changed

18 files changed

+1115
-351
lines changed

sdk/communication/azure-communication-callautomation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ Call Automation enables developers to build call workflows. Personalise customer
5858
[Overview]: https://learn.microsoft.com/azure/communication-services/concepts/voice-video-calling/call-automation
5959
[Demo Video]: https://ignite.microsoft.com/sessions/14a36f87-d1a2-4882-92a7-70f2c16a306a
6060
[Incoming Call Concept]: https://learn.microsoft.com/azure/communication-services/concepts/voice-video-calling/incoming-call-notification
61-
[Build a customer interaction workflow using Call Automation]: https://learn.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/callflows-for-customer-interactions
61+
[Build a customer interaction workflow using Call Automation]: https://learn.microsoft.com/azure/communication-services/quickstarts/voice-video-calling/callflows-for-customer-interactions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
RecordingContent,
4343
RecordingChannel,
4444
RecordingFormat,
45-
RecordingStorage,
45+
RecordingStorageKind,
4646
RecognizeInputType,
4747
MediaStreamingAudioChannelType,
4848
MediaStreamingContentType,
@@ -105,7 +105,7 @@
105105
"RecordingContent",
106106
"RecordingChannel",
107107
"RecordingFormat",
108-
"RecordingStorage",
108+
"RecordingStorageKind",
109109
"RecognizeInputType",
110110
"MediaStreamingAudioChannelType",
111111
"MediaStreamingContentType",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ class ApiVersion(str, Enum, metaclass=CaseInsensitiveEnumMeta):
1111
V2023_06_15_PREVIEW = "2023-06-15-preview"
1212
V2023_10_15 = "2023-10-15"
1313
V2023_10_03_PREVIEW = "2023-10-03-preview"
14+
V2024_04_15 = "2024-04-15"
1415

1516
DEFAULT_VERSION = ApiVersion.V2023_10_03_PREVIEW.value

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
RecordingContent,
6262
RecordingChannel,
6363
RecordingFormat,
64-
RecordingStorage
64+
RecordingStorageKind
6565
)
6666

6767

@@ -453,7 +453,7 @@ def start_recording(
453453
recording_format_type: Optional[Union[str, 'RecordingFormat']] = None,
454454
audio_channel_participant_ordering: Optional[List['CommunicationIdentifier']] = None,
455455
channel_affinity: Optional[List['ChannelAffinity']] = None,
456-
recording_storage_type: Optional[Union[str, 'RecordingStorage']] = None,
456+
recording_storage_kind: Optional[Union[str, 'RecordingStorageKind']] = None,
457457
external_storage_location: Optional[str] = None,
458458
pause_on_start: Optional[bool] = None,
459459
**kwargs
@@ -486,7 +486,7 @@ def start_recording(
486486
``External`` enables bring your own storage.
487487
:paramtype recording_storage_type: str or None
488488
:keyword external_storage_location: The location where recording is stored,
489-
when RecordingStorageType is set to 'BlobStorage'.
489+
when RecordingStorageKind is set to 'AzureBlobStorage'.
490490
:paramtype external_storage_location: str or ~azure.communication.callautomation.RecordingStorage or None
491491
:keyword pause_on_start: The state of the pause on start option.
492492
:paramtype pause_on_start: bool or None
@@ -506,7 +506,7 @@ def start_recording(
506506
recording_format_type: Optional[Union[str, 'RecordingFormat']] = None,
507507
audio_channel_participant_ordering: Optional[List['CommunicationIdentifier']] = None,
508508
channel_affinity: Optional[List['ChannelAffinity']] = None,
509-
recording_storage_type: Optional[Union[str, 'RecordingStorage']] = None,
509+
recording_storage_kind: Optional[Union[str, 'RecordingStorageKind']] = None,
510510
external_storage_location: Optional[str] = None,
511511
pause_on_start: Optional[bool] = None,
512512
**kwargs
@@ -539,7 +539,7 @@ def start_recording(
539539
``External`` enables bring your own storage.
540540
:paramtype recording_storage_type: str or None
541541
:keyword external_storage_location: The location where recording is stored,
542-
when RecordingStorageType is set to 'BlobStorage'.
542+
when RecordingStorageKind is set to 'AzureBlobStorage'.
543543
:paramtype external_storage_location: str or ~azure.communication.callautomation.RecordingStorage or None
544544
:keyword pause_on_start: The state of the pause on start option.
545545
:paramtype pause_on_start: bool or None

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Copyright (c) Microsoft Corporation.
33
# Licensed under the MIT License.
44
# ------------------------------------
5+
6+
57
"""Customize generated code here.
68
79
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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ def _deserialize(self, target_obj, data):
14411441
elif isinstance(response, type) and issubclass(response, Enum):
14421442
return self.deserialize_enum(data, response)
14431443

1444-
if data is None:
1444+
if data is None or data is CoreNull:
14451445
return data
14461446
try:
14471447
attributes = response._attribute_map # type: ignore

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

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

0 commit comments

Comments
 (0)