Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"endpoint": "https://contoso.communication.azure.com/",
"api-version": "2023-01-01",
"roomId": "99199690362660524",
"PatchParticipantsRequest": {
"patchParticipantsRequest": {
"8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000666": {
"role": "Presenter"
},
"8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000667": {
"role": "Attendee"
}
}
}
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,15 @@
"body": {
"participants": [
{
"communicationIdentifier": {
"rawId": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000333",
"communicationUser": {
"id": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000333"
}
},
"rawId": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000333",
"role": "Presenter"
},
{
"communicationIdentifier": {
"rawId": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000444",
"communicationUser": {
"id": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000444"
}
},
"rawId": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000444",
"role": "Attendee"
},
{
"communicationIdentifier": {
"rawId": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000555",
"communicationUser": {
"id": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000555"
}
},
"rawId": "8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000555",
"role": "Attendee"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"endpoint": "https://contoso.communication.azure.com/",
"api-version": "2023-01-01",
"roomId": "99199690362660524",
"PatchParticipantsRequest": null
"patchParticipantsRequest": null
},
"responses": {
"200": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"endpoint": "https://contoso.communication.azure.com/",
"api-version": "2023-01-01",
"roomId": "99199690362660524",
"PatchParticipantsRequest": {
"patchParticipantsRequest": {
"8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000666": null
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"endpoint": "https://contoso.communication.azure.com/",
"api-version": "2023-01-01",
"roomId": "99199690362660524",
"PatchParticipantsRequest": {
"patchParticipantsRequest": {
"8:acs:db75ed0c-e801-41a3-99a4-66a0a119a06c_00000010-ce28-064a-83fe-084822000666": {
"role": "Attendee"
},
Expand Down
15 changes: 15 additions & 0 deletions specification/communication/data-plane/Rooms/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## C

These settings apply only when `--csharp` is specified on the command line.
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.

```yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 1
clear-output-folder: true
client-side-validation: false
namespace: Microsoft.CommunicationServices
output-folder: $(csharp-sdks-folder)/communicationservices/management/Microsoft.CommunicationServices/GeneratedProtocol
```
36 changes: 32 additions & 4 deletions specification/communication/data-plane/Rooms/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ These are the global settings for the communicationservices.

```yaml
openapi-type: data-plane
tag: package-rooms-2022-02-01-preview
input-file:
- preview/2022-02-01-preview/communicationservicesrooms.json
tag: package-rooms-2023-01-01-preview
```

### Tag: package-rooms-2022-02-01-preview
Expand All @@ -40,4 +38,34 @@ input-file:
- preview/2022-02-01-preview/communicationservicesrooms.json
title:
Azure Communication Services
```
```

### Tag: package-rooms-2023-01-01-preview

These settings apply only when `--tag=package-rooms-2023-01-01-preview` is specified on the command line.

```yaml $(tag) == 'package-rooms-2023-01-01-preview'
input-file:
- preview/2023-01-01-preview/communicationservicesrooms.json
title:
Azure Communication Services
```

# Code Generation

## Swagger to SDK

This section describes what SDK should be generated by the automatic system.
This is not used by Autorest itself.

## Python

See configuration in [readme.python.md](./readme.python.md)

## TypeScript

See configuration in [readme.typescript.md](./readme.typescript.md)

## CSharp

See configuration in [readme.csharp.md](./readme.csharp.md)
21 changes: 21 additions & 0 deletions specification/communication/data-plane/Rooms/readme.python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Python

These settings apply only when `--python` is specified on the command line.
Please also specify `--python-sdks-folder=<path to the root directory of your azure-sdk-for-python clone>`.

```yaml $(python)
python:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 2
namespace: Microsoft.CommunicationServices
package-name: communicationservices
package-version: 2023-01-01-preview
clear-output-folder: true
```

```yaml $(python)
python:
no-namespace-folders: true
output-folder: $(python-sdks-folder)/azure-mgmt/communicationservices
```
13 changes: 13 additions & 0 deletions specification/communication/data-plane/Rooms/readme.typescript.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## TypeScript

These settings apply only when `--typescript` is specified on the command line.
Please also specify `--typescript-sdks-folder=<path to root folder of your azure-sdk-for-js clone>`.

```yaml $(typescript)
typescript:
azure-arm: true
package-name: "communicationservices"
output-folder: "$(typescript-sdks-folder)/packages/communicationservices"
payload-flattening-threshold: 1
generate-metadata: true
```