forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for Mixed Audio Recordings Release (Azure#15618)
* Adding the existing folders to a new version * Updating swagger file and readme * Addressed PR comments * Nit changes Co-authored-by: Ninika Sharma <ninsharm@microsoft.com>
- Loading branch information
1 parent
e68d33c
commit 3893616
Showing
17 changed files
with
2,380 additions
and
1 deletion.
There are no files selected for viewing
1,506 changes: 1,506 additions & 0 deletions
1,506
...ta-plane/CallingServer/preview/2021-08-30-preview/communicationservicescallingserver.json
Large diffs are not rendered by default.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
...ane/CallingServer/preview/2021-08-30-preview/examples/CallConnections_AddParticipant.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2021-06-15-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"addParticipantRequest": { | ||
"participant": { | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_387c0153-3b4d-4779-9ee3-a6e2440df075" | ||
} | ||
}, | ||
"operationContext": "5161f20a-7225-4a74-a529-efaf8e7b351d", | ||
"callbackUri": "https://app.contoso.com/callback" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"participantId": "c736e607-5b39-42a7-a6bb-bb43029e5bac" | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "400", | ||
"message": "The request contains invalid data." | ||
} | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "401", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "403", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": { | ||
"code": "404", | ||
"message": "Resource not found on the server." | ||
} | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": { | ||
"code": "500", | ||
"message": "Internal server error." | ||
} | ||
} | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
...gServer/preview/2021-08-30-preview/examples/CallConnections_CancelAllMediaOperations.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2021-06-15-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"cancelAllMediaOperationRequest": { | ||
"operationContext": "91848e99-0d36-4bca-ac06-6c38fe390289" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"status": "completed", | ||
"operationContext": "91848e99-0d36-4bca-ac06-6c38fe390289" | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "400", | ||
"message": "The request contains invalid data." | ||
} | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "401", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "403", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": { | ||
"code": "404", | ||
"message": "Resource not found on the server." | ||
} | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": { | ||
"code": "500", | ||
"message": "Internal server error." | ||
} | ||
} | ||
} | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
...a-plane/CallingServer/preview/2021-08-30-preview/examples/CallConnections_CreateCall.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2021-06-15-preview", | ||
"callRequest": { | ||
"source": { | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce" | ||
} | ||
}, | ||
"targets": [ | ||
{ | ||
"communicationUser": { | ||
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9" | ||
} | ||
}, | ||
{ | ||
"phoneNumber": { | ||
"value": "+14250123456" | ||
} | ||
} | ||
], | ||
"alternateCallerId": { | ||
"value": "+18440123456" | ||
}, | ||
"subject": "Reminder call", | ||
"callbackUri": "https://app.contoso.com/callback", | ||
"requestedMediaTypes": [ | ||
"audio", | ||
"video" | ||
], | ||
"requestedCallEvents": [ | ||
"dtmfReceived", | ||
"participantsUpdated" | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c" | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "400", | ||
"message": "The request contains invalid data." | ||
} | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "401", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "403", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": { | ||
"code": "500", | ||
"message": "Internal server error." | ||
} | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...a-plane/CallingServer/preview/2021-08-30-preview/examples/CallConnections_HangupCall.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2021-06-15-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "400", | ||
"message": "The request contains invalid data." | ||
} | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "401", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "403", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": { | ||
"code": "404", | ||
"message": "Resource not found on the server." | ||
} | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": { | ||
"code": "500", | ||
"message": "Internal server error." | ||
} | ||
} | ||
} | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
...ta-plane/CallingServer/preview/2021-08-30-preview/examples/CallConnections_PlayAudio.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2021-06-15-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"request": { | ||
"audioFileUri": "https://app.contoso.com/audio/message.wav", | ||
"loop": false, | ||
"operationContext": "31130c66-2f86-41b5-af61-23850243e093", | ||
"audioFileId": "42922e2c-a204-4ac4-8d80-375ae2792389" | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"body": { | ||
"status": "running", | ||
"operationContext": "31130c66-2f86-41b5-af61-23850243e093" | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "400", | ||
"message": "The request contains invalid data." | ||
} | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "401", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "403", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": { | ||
"code": "404", | ||
"message": "Resource not found on the server." | ||
} | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": { | ||
"code": "500", | ||
"message": "Internal server error." | ||
} | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
.../CallingServer/preview/2021-08-30-preview/examples/CallConnections_RemoveParticipant.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "https://contoso.communications.azure.com", | ||
"api-version": "2021-06-15-preview", | ||
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c", | ||
"participantId": "d8b26c04-7186-41e2-971a-bdfa9a662a53" | ||
}, | ||
"responses": { | ||
"202": {}, | ||
"400": { | ||
"body": { | ||
"error": { | ||
"code": "400", | ||
"message": "The request contains invalid data." | ||
} | ||
} | ||
}, | ||
"401": { | ||
"body": { | ||
"error": { | ||
"code": "401", | ||
"message": "Request is not authorized." | ||
} | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": { | ||
"code": "403", | ||
"message": "User is not allowed to perform specified action." | ||
} | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": { | ||
"code": "404", | ||
"message": "Resource not found on the server." | ||
} | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": { | ||
"code": "500", | ||
"message": "Internal server error." | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.