Skip to content

Commit d8a5fbd

Browse files
minnieliuMinnie Liu
andauthored
Update Media Composition Swagger to latest version (#21642)
* Update Media Composition Swagger * Manually update the swagger to unblock * Fix spec errors * Prettify * Prettify * Updating swagger * Prettify Co-authored-by: Minnie Liu <[email protected]>
1 parent 39e5b4a commit d8a5fbd

7 files changed

+683
-452
lines changed

specification/communication/data-plane/MediaComposition/preview/2022-07-16-preview/examples/MediaComposition_CreateMediaComposition.json

Lines changed: 96 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,104 @@
11
{
2-
"parameters": {
3-
"endpoint": "https://contoso.westus.communications.azure.com",
4-
"api-version": "2022-07-16-preview1",
5-
"mediaCompositionId": "49b2b09f-5be7-4a67-835e-9b11aa260f08",
6-
"mediaComposition": {
7-
"layout": {
8-
"kind": "autoGrid",
9-
"inputIds": [ "meeting" ],
10-
"resolution": {
11-
"width": 1920,
12-
"height": 1080
13-
}
14-
},
15-
"inputs": {
16-
"meeting": {
17-
"kind": "teamsMeeting",
18-
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
19-
}
20-
},
21-
"outputs": {
22-
"meeting": {
23-
"kind": "teamsMeeting",
24-
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
25-
}
26-
}
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2022-07-16-preview",
5+
"mediaCompositionId": "49b2b09f-5be7-4a67-835e-9b11aa260f08",
6+
"body": {
7+
"layout": {
8+
"kind": "autoGrid",
9+
"inputIds": [
10+
"meeting"
11+
],
12+
"resolution": {
13+
"width": 1920,
14+
"height": 1080
2715
}
28-
},
29-
"responses": {
30-
"200": {
31-
"body": {
32-
"id": "49b2b09f-5be7-4a67-835e-9b11aa260f08",
33-
"layout": {
34-
"kind": "autoGrid",
35-
"inputIds": [ "meeting" ],
36-
"highlightDominantSpeaker": false,
37-
"resolution": {
38-
"width": 1920,
39-
"height": 1080
40-
}
41-
},
42-
"inputs": {
43-
"meeting": {
44-
"kind": "teamsMeeting",
45-
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
46-
}
47-
},
48-
"outputs": {
49-
"meeting": {
50-
"kind": "teamsMeeting",
51-
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
52-
}
53-
},
54-
"streamState": {
55-
"status": "notStarted"
56-
}
57-
}
58-
},
59-
"400": {
60-
"body": {
61-
"error": {
62-
"code": "BadRequest",
63-
"message": "The request contains invalid data."
64-
}
65-
}
66-
},
67-
"401": {
68-
"body": {
69-
"error": {
70-
"code": "Unauthorized",
71-
"message": "Request is not authorized."
72-
}
73-
}
16+
},
17+
"inputs": {
18+
"meeting": {
19+
"kind": "teamsMeeting",
20+
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
21+
}
22+
},
23+
"outputs": {
24+
"meeting": {
25+
"kind": "teamsMeeting",
26+
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
27+
}
28+
}
29+
}
30+
},
31+
"responses": {
32+
"200": {
33+
"body": {
34+
"id": "49b2b09f-5be7-4a67-835e-9b11aa260f08",
35+
"layout": {
36+
"kind": "autoGrid",
37+
"inputIds": [
38+
"meeting"
39+
],
40+
"highlightDominantSpeaker": false,
41+
"resolution": {
42+
"width": 1920,
43+
"height": 1080
44+
}
7445
},
75-
"403": {
76-
"body": {
77-
"error": {
78-
"code": "Forbidden",
79-
"message": "User is not allowed to perform specified action."
80-
}
81-
}
46+
"inputs": {
47+
"meeting": {
48+
"kind": "teamsMeeting",
49+
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
50+
}
8251
},
83-
"429": {
84-
"body": {
85-
"error": {
86-
"code": "TooManyRequests",
87-
"message": "Rate limit exceeded."
88-
}
89-
}
52+
"outputs": {
53+
"meeting": {
54+
"kind": "teamsMeeting",
55+
"teamsJoinUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_ZjhlYTc5NTEtYjQ0Ny00ZDkwLWIxZTYtYzg0MDNmMTg5MGIy%40thread.v2/0?context=%7b%22Tid%22%3a%2221fa45a2-67de-4731-b654-ccf5c9c0d577%22%2c%22Oid%22%3a%22fbb3436a-4ec7-46e0-b20d-e6de72513e58%22%7d"
56+
}
9057
},
91-
"503": {
92-
"body": {
93-
"error": {
94-
"code": "ServiceUnavailable",
95-
"message": "The server is currently unable to handle the request."
96-
}
97-
}
58+
"streamState": {
59+
"status": "notStarted"
60+
}
61+
}
62+
},
63+
"400": {
64+
"body": {
65+
"error": {
66+
"code": "BadRequest",
67+
"message": "The request contains invalid data."
68+
}
69+
}
70+
},
71+
"401": {
72+
"body": {
73+
"error": {
74+
"code": "Unauthorized",
75+
"message": "Request is not authorized."
76+
}
77+
}
78+
},
79+
"403": {
80+
"body": {
81+
"error": {
82+
"code": "Forbidden",
83+
"message": "User is not allowed to perform specified action."
84+
}
85+
}
86+
},
87+
"429": {
88+
"body": {
89+
"error": {
90+
"code": "TooManyRequests",
91+
"message": "Rate limit exceeded."
92+
}
93+
}
94+
},
95+
"503": {
96+
"body": {
97+
"error": {
98+
"code": "ServiceUnavailable",
99+
"message": "The server is currently unable to handle the request."
98100
}
101+
}
99102
}
103+
}
100104
}
101-
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
{
2-
"parameters": {
3-
"endpoint": "https://contoso.westus.communications.azure.com",
4-
"api-version": "2022-07-16-preview1",
5-
"mediaCompositionId": "49b2b09f-5be7-4a67-835e-9b11aa260f08"
2+
"parameters": {
3+
"endpoint": "https://contoso.westus.communications.azure.com",
4+
"api-version": "2022-07-16-preview",
5+
"mediaCompositionId": "49b2b09f-5be7-4a67-835e-9b11aa260f08"
6+
},
7+
"responses": {
8+
"204": {},
9+
"400": {
10+
"body": {
11+
"error": {
12+
"code": "BadRequest",
13+
"message": "The request contains invalid data."
14+
}
15+
}
16+
},
17+
"401": {
18+
"body": {
19+
"error": {
20+
"code": "Unauthorized",
21+
"message": "Request is not authorized."
22+
}
23+
}
24+
},
25+
"403": {
26+
"body": {
27+
"error": {
28+
"code": "Forbidden",
29+
"message": "User is not allowed to perform specified action."
30+
}
31+
}
32+
},
33+
"429": {
34+
"body": {
35+
"error": {
36+
"code": "TooManyRequests",
37+
"message": "Rate limit exceeded."
38+
}
39+
}
640
},
7-
"responses": {
8-
"204": {},
9-
"400": {
10-
"body": {
11-
"error": {
12-
"code": "BadRequest",
13-
"message": "The request contains invalid data."
14-
}
15-
}
16-
},
17-
"401": {
18-
"body": {
19-
"error": {
20-
"code": "Unauthorized",
21-
"message": "Request is not authorized."
22-
}
23-
}
24-
},
25-
"403": {
26-
"body": {
27-
"error": {
28-
"code": "Forbidden",
29-
"message": "User is not allowed to perform specified action."
30-
}
31-
}
32-
},
33-
"429": {
34-
"body": {
35-
"error": {
36-
"code": "TooManyRequests",
37-
"message": "Rate limit exceeded."
38-
}
39-
}
40-
},
41-
"503": {
42-
"body": {
43-
"error": {
44-
"code": "ServiceUnavailable",
45-
"message": "The server is currently unable to handle the request."
46-
}
47-
}
41+
"503": {
42+
"body": {
43+
"error": {
44+
"code": "ServiceUnavailable",
45+
"message": "The server is currently unable to handle the request."
4846
}
47+
}
4948
}
49+
}
5050
}

0 commit comments

Comments
 (0)