@@ -276,15 +276,18 @@ class AnswerCallRequest(_serialization.Model):
276
276
:vartype incoming_call_context: str
277
277
:ivar callback_uri: The callback uri. Required.
278
278
:vartype callback_uri: str
279
+ :ivar operation_context: A customer set value used to track the answering of a call.
280
+ :vartype operation_context: str
279
281
:ivar media_streaming_configuration: Media Streaming Configuration.
280
282
:vartype media_streaming_configuration:
281
283
~azure.communication.callautomation.models.MediaStreamingConfiguration
282
284
:ivar azure_cognitive_services_endpoint_url: The endpoint URL of the Azure Cognitive Services
283
285
resource attached.
284
286
:vartype azure_cognitive_services_endpoint_url: str
285
- :ivar answered_by_identifier: The identifier of the contoso app which answers the call.
287
+ :ivar answered_by_identifier: The identifier of the call automation entity which answers the
288
+ call.
286
289
:vartype answered_by_identifier:
287
- ~azure.communication.callautomation.models.CommunicationIdentifierModel
290
+ ~azure.communication.callautomation.models.CommunicationUserIdentifierModel
288
291
"""
289
292
290
293
_validation = {
@@ -295,39 +298,45 @@ class AnswerCallRequest(_serialization.Model):
295
298
_attribute_map = {
296
299
"incoming_call_context" : {"key" : "incomingCallContext" , "type" : "str" },
297
300
"callback_uri" : {"key" : "callbackUri" , "type" : "str" },
301
+ "operation_context" : {"key" : "operationContext" , "type" : "str" },
298
302
"media_streaming_configuration" : {"key" : "mediaStreamingConfiguration" , "type" : "MediaStreamingConfiguration" },
299
303
"azure_cognitive_services_endpoint_url" : {"key" : "azureCognitiveServicesEndpointUrl" , "type" : "str" },
300
- "answered_by_identifier" : {"key" : "answeredByIdentifier" , "type" : "CommunicationIdentifierModel " },
304
+ "answered_by_identifier" : {"key" : "answeredByIdentifier" , "type" : "CommunicationUserIdentifierModel " },
301
305
}
302
306
303
307
def __init__ (
304
308
self ,
305
309
* ,
306
310
incoming_call_context : str ,
307
311
callback_uri : str ,
312
+ operation_context : Optional [str ] = None ,
308
313
media_streaming_configuration : Optional ["_models.MediaStreamingConfiguration" ] = None ,
309
314
azure_cognitive_services_endpoint_url : Optional [str ] = None ,
310
- answered_by_identifier : Optional ["_models.CommunicationIdentifierModel " ] = None ,
315
+ answered_by_identifier : Optional ["_models.CommunicationUserIdentifierModel " ] = None ,
311
316
** kwargs : Any
312
317
) -> None :
313
318
"""
314
319
:keyword incoming_call_context: The context associated with the call. Required.
315
320
:paramtype incoming_call_context: str
316
321
:keyword callback_uri: The callback uri. Required.
317
322
:paramtype callback_uri: str
323
+ :keyword operation_context: A customer set value used to track the answering of a call.
324
+ :paramtype operation_context: str
318
325
:keyword media_streaming_configuration: Media Streaming Configuration.
319
326
:paramtype media_streaming_configuration:
320
327
~azure.communication.callautomation.models.MediaStreamingConfiguration
321
328
:keyword azure_cognitive_services_endpoint_url: The endpoint URL of the Azure Cognitive
322
329
Services resource attached.
323
330
:paramtype azure_cognitive_services_endpoint_url: str
324
- :keyword answered_by_identifier: The identifier of the contoso app which answers the call.
331
+ :keyword answered_by_identifier: The identifier of the call automation entity which answers the
332
+ call.
325
333
:paramtype answered_by_identifier:
326
- ~azure.communication.callautomation.models.CommunicationIdentifierModel
334
+ ~azure.communication.callautomation.models.CommunicationUserIdentifierModel
327
335
"""
328
336
super ().__init__ (** kwargs )
329
337
self .incoming_call_context = incoming_call_context
330
338
self .callback_uri = callback_uri
339
+ self .operation_context = operation_context
331
340
self .media_streaming_configuration = media_streaming_configuration
332
341
self .azure_cognitive_services_endpoint_url = azure_cognitive_services_endpoint_url
333
342
self .answered_by_identifier = answered_by_identifier
@@ -409,7 +418,7 @@ def __init__(
409
418
self .operation_context = operation_context
410
419
411
420
412
- class CallConnectionProperties (_serialization .Model ):
421
+ class CallConnectionProperties (_serialization .Model ): # pylint: disable=too-many-instance-attributes
413
422
"""Properties of a call connection.
414
423
415
424
:ivar call_connection_id: The call connection id.
@@ -437,6 +446,12 @@ class CallConnectionProperties(_serialization.Model):
437
446
:ivar source_identity: Source identity.
438
447
:vartype source_identity:
439
448
~azure.communication.callautomation.models.CommunicationIdentifierModel
449
+ :ivar correlation_id: The correlation ID.
450
+ :vartype correlation_id: str
451
+ :ivar answered_by_identifier: Identity of the answering entity. Only populated when identity is
452
+ provided in the request.
453
+ :vartype answered_by_identifier:
454
+ ~azure.communication.callautomation.models.CommunicationUserIdentifierModel
440
455
"""
441
456
442
457
_attribute_map = {
@@ -449,6 +464,8 @@ class CallConnectionProperties(_serialization.Model):
449
464
"source_caller_id_number" : {"key" : "sourceCallerIdNumber" , "type" : "PhoneNumberIdentifierModel" },
450
465
"source_display_name" : {"key" : "sourceDisplayName" , "type" : "str" },
451
466
"source_identity" : {"key" : "sourceIdentity" , "type" : "CommunicationIdentifierModel" },
467
+ "correlation_id" : {"key" : "correlationId" , "type" : "str" },
468
+ "answered_by_identifier" : {"key" : "answeredByIdentifier" , "type" : "CommunicationUserIdentifierModel" },
452
469
}
453
470
454
471
def __init__ (
@@ -463,6 +480,8 @@ def __init__(
463
480
source_caller_id_number : Optional ["_models.PhoneNumberIdentifierModel" ] = None ,
464
481
source_display_name : Optional [str ] = None ,
465
482
source_identity : Optional ["_models.CommunicationIdentifierModel" ] = None ,
483
+ correlation_id : Optional [str ] = None ,
484
+ answered_by_identifier : Optional ["_models.CommunicationUserIdentifierModel" ] = None ,
466
485
** kwargs : Any
467
486
) -> None :
468
487
"""
@@ -492,6 +511,12 @@ def __init__(
492
511
:keyword source_identity: Source identity.
493
512
:paramtype source_identity:
494
513
~azure.communication.callautomation.models.CommunicationIdentifierModel
514
+ :keyword correlation_id: The correlation ID.
515
+ :paramtype correlation_id: str
516
+ :keyword answered_by_identifier: Identity of the answering entity. Only populated when identity
517
+ is provided in the request.
518
+ :paramtype answered_by_identifier:
519
+ ~azure.communication.callautomation.models.CommunicationUserIdentifierModel
495
520
"""
496
521
super ().__init__ (** kwargs )
497
522
self .call_connection_id = call_connection_id
@@ -503,6 +528,8 @@ def __init__(
503
528
self .source_caller_id_number = source_caller_id_number
504
529
self .source_display_name = source_display_name
505
530
self .source_identity = source_identity
531
+ self .correlation_id = correlation_id
532
+ self .answered_by_identifier = answered_by_identifier
506
533
507
534
508
535
class CallDisconnected (_serialization .Model ):
@@ -746,6 +773,46 @@ def __init__(
746
773
self .result_information = result_information
747
774
748
775
776
+ class ChannelAffinity (_serialization .Model ):
777
+ """Channel affinity for a participant.
778
+
779
+ All required parameters must be populated in order to send to Azure.
780
+
781
+ :ivar channel: Channel number to which bitstream from a particular participant will be written.
782
+ :vartype channel: int
783
+ :ivar participant: The identifier for the participant whose bitstream will be written to the
784
+ channel
785
+ represented by the channel number. Required.
786
+ :vartype participant: ~azure.communication.callautomation.models.CommunicationIdentifierModel
787
+ """
788
+
789
+ _validation = {
790
+ "channel" : {"maximum" : 4 , "minimum" : 0 },
791
+ "participant" : {"required" : True },
792
+ }
793
+
794
+ _attribute_map = {
795
+ "channel" : {"key" : "channel" , "type" : "int" },
796
+ "participant" : {"key" : "participant" , "type" : "CommunicationIdentifierModel" },
797
+ }
798
+
799
+ def __init__ (
800
+ self , * , participant : "_models.CommunicationIdentifierModel" , channel : Optional [int ] = None , ** kwargs : Any
801
+ ) -> None :
802
+ """
803
+ :keyword channel: Channel number to which bitstream from a particular participant will be
804
+ written.
805
+ :paramtype channel: int
806
+ :keyword participant: The identifier for the participant whose bitstream will be written to the
807
+ channel
808
+ represented by the channel number. Required.
809
+ :paramtype participant: ~azure.communication.callautomation.models.CommunicationIdentifierModel
810
+ """
811
+ super ().__init__ (** kwargs )
812
+ self .channel = channel
813
+ self .participant = participant
814
+
815
+
749
816
class Choice (_serialization .Model ):
750
817
"""Choice.
751
818
@@ -1232,7 +1299,7 @@ class CreateCallRequest(_serialization.Model):
1232
1299
:vartype source_display_name: str
1233
1300
:ivar source_identity: The identifier of the source of the call.
1234
1301
:vartype source_identity:
1235
- ~azure.communication.callautomation.models.CommunicationIdentifierModel
1302
+ ~azure.communication.callautomation.models.CommunicationUserIdentifierModel
1236
1303
:ivar operation_context: A customer set value used to track the answering of a call.
1237
1304
:vartype operation_context: str
1238
1305
:ivar callback_uri: The callback URI. Required.
@@ -1256,7 +1323,7 @@ class CreateCallRequest(_serialization.Model):
1256
1323
"targets" : {"key" : "targets" , "type" : "[CommunicationIdentifierModel]" },
1257
1324
"source_caller_id_number" : {"key" : "sourceCallerIdNumber" , "type" : "PhoneNumberIdentifierModel" },
1258
1325
"source_display_name" : {"key" : "sourceDisplayName" , "type" : "str" },
1259
- "source_identity" : {"key" : "sourceIdentity" , "type" : "CommunicationIdentifierModel " },
1326
+ "source_identity" : {"key" : "sourceIdentity" , "type" : "CommunicationUserIdentifierModel " },
1260
1327
"operation_context" : {"key" : "operationContext" , "type" : "str" },
1261
1328
"callback_uri" : {"key" : "callbackUri" , "type" : "str" },
1262
1329
"media_streaming_configuration" : {"key" : "mediaStreamingConfiguration" , "type" : "MediaStreamingConfiguration" },
@@ -1271,7 +1338,7 @@ def __init__(
1271
1338
callback_uri : str ,
1272
1339
source_caller_id_number : Optional ["_models.PhoneNumberIdentifierModel" ] = None ,
1273
1340
source_display_name : Optional [str ] = None ,
1274
- source_identity : Optional ["_models.CommunicationIdentifierModel " ] = None ,
1341
+ source_identity : Optional ["_models.CommunicationUserIdentifierModel " ] = None ,
1275
1342
operation_context : Optional [str ] = None ,
1276
1343
media_streaming_configuration : Optional ["_models.MediaStreamingConfiguration" ] = None ,
1277
1344
azure_cognitive_services_endpoint_url : Optional [str ] = None ,
@@ -1291,7 +1358,7 @@ def __init__(
1291
1358
:paramtype source_display_name: str
1292
1359
:keyword source_identity: The identifier of the source of the call.
1293
1360
:paramtype source_identity:
1294
- ~azure.communication.callautomation.models.CommunicationIdentifierModel
1361
+ ~azure.communication.callautomation.models.CommunicationUserIdentifierModel
1295
1362
:keyword operation_context: A customer set value used to track the answering of a call.
1296
1363
:paramtype operation_context: str
1297
1364
:keyword callback_uri: The callback URI. Required.
@@ -3117,6 +3184,12 @@ class StartCallRecordingRequest(_serialization.Model):
3117
3184
of the recording.
3118
3185
:vartype audio_channel_participant_ordering:
3119
3186
list[~azure.communication.callautomation.models.CommunicationIdentifierModel]
3187
+ :ivar channel_affinity: The channel affinity of call recording
3188
+ When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified,
3189
+ 'channel' will be automatically assigned.
3190
+ Channel-Participant mapping details can be found in the metadata of the recording.
3191
+ ///.
3192
+ :vartype channel_affinity: list[~azure.communication.callautomation.models.ChannelAffinity]
3120
3193
:ivar external_storage: Optional property to specify location where recording will be stored.
3121
3194
:vartype external_storage: ~azure.communication.callautomation.models.ExternalStorage
3122
3195
"""
@@ -3135,6 +3208,7 @@ class StartCallRecordingRequest(_serialization.Model):
3135
3208
"key" : "audioChannelParticipantOrdering" ,
3136
3209
"type" : "[CommunicationIdentifierModel]" ,
3137
3210
},
3211
+ "channel_affinity" : {"key" : "channelAffinity" , "type" : "[ChannelAffinity]" },
3138
3212
"external_storage" : {"key" : "externalStorage" , "type" : "ExternalStorage" },
3139
3213
}
3140
3214
@@ -3147,6 +3221,7 @@ def __init__(
3147
3221
recording_channel_type : Optional [Union [str , "_models.RecordingChannel" ]] = None ,
3148
3222
recording_format_type : Optional [Union [str , "_models.RecordingFormat" ]] = None ,
3149
3223
audio_channel_participant_ordering : Optional [List ["_models.CommunicationIdentifierModel" ]] = None ,
3224
+ channel_affinity : Optional [List ["_models.ChannelAffinity" ]] = None ,
3150
3225
external_storage : Optional ["_models.ExternalStorage" ] = None ,
3151
3226
** kwargs : Any
3152
3227
) -> None :
@@ -3177,6 +3252,12 @@ def __init__(
3177
3252
of the recording.
3178
3253
:paramtype audio_channel_participant_ordering:
3179
3254
list[~azure.communication.callautomation.models.CommunicationIdentifierModel]
3255
+ :keyword channel_affinity: The channel affinity of call recording
3256
+ When 'recordingChannelType' is set to 'unmixed', if channelAffinity is not specified,
3257
+ 'channel' will be automatically assigned.
3258
+ Channel-Participant mapping details can be found in the metadata of the recording.
3259
+ ///.
3260
+ :paramtype channel_affinity: list[~azure.communication.callautomation.models.ChannelAffinity]
3180
3261
:keyword external_storage: Optional property to specify location where recording will be
3181
3262
stored.
3182
3263
:paramtype external_storage: ~azure.communication.callautomation.models.ExternalStorage
@@ -3188,6 +3269,7 @@ def __init__(
3188
3269
self .recording_channel_type = recording_channel_type
3189
3270
self .recording_format_type = recording_format_type
3190
3271
self .audio_channel_participant_ordering = audio_channel_participant_ordering
3272
+ self .channel_affinity = channel_affinity
3191
3273
self .external_storage = external_storage
3192
3274
3193
3275
0 commit comments