Skip to content

Commit d4e95e1

Browse files
vanshu86Vanshika Sinha
andauthored
updating swagger to match ARM API for DirectLineSpeechChannel (#14317)
* updating swagger to match ARM API for DirectLineSpeechChannel * addressing auto-comments * typo * tagging cognitiveSubscriptionKey as x-ms-secret * updating examples * removing cognitiveSubscriptionKey from responses Co-authored-by: Vanshika Sinha <vasinha@microsoft.com>
1 parent 138df5f commit d4e95e1

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/botservice.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,9 +1982,14 @@
19821982
},
19831983
"DirectLineSpeechChannelProperties": {
19841984
"properties": {
1985-
"cognitiveServicesSubscriptionId": {
1985+
"cognitiveServiceRegion": {
19861986
"type": "string",
1987-
"description": "The cognitive service subscription ID to use with this channel registration."
1987+
"description": "The cognitive service region with this channel registration."
1988+
},
1989+
"cognitiveServiceSubscriptionKey": {
1990+
"x-ms-secret": true,
1991+
"type": "string",
1992+
"description": "The cognitive service subscription key to use with this channel registration."
19881993
},
19891994
"isEnabled": {
19901995
"type": "boolean",
@@ -2005,7 +2010,8 @@
20052010
},
20062011
"description": "The parameters to provide for the DirectLine Speech channel.",
20072012
"required": [
2008-
"cognitiveServicesSubscriptionId"
2013+
"cognitiveServiceRegion",
2014+
"cognitiveServiceSubscriptionKey"
20092015
]
20102016
},
20112017
"ChannelResponseList": {

specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetDirectLineSpeechChannel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"properties": {
1414
"channelName": "DirectLineSpeechChannel",
1515
"properties": {
16-
"cognitiveServicesSubscriptionId": "Cognitive services subscription ID",
16+
"cognitiveServiceRegion": "Cognitive service region",
1717
"customVoiceDeploymentId": "Custom voice deployment ID",
1818
"customSpeechModelId": "Custom speech model ID",
1919
"isDefaultBotForCogSvcAccount": true,

specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutDirectLineSpeechChannel.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"properties": {
1111
"channelName": "DirectLineSpeechChannel",
1212
"properties": {
13-
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
13+
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
14+
"cognitiveServiceSubscriptionKey": "XcognitiveServiceSubscriptionKeyX",
1415
"isEnabled": true
1516
}
1617
}
@@ -23,7 +24,7 @@
2324
"properties": {
2425
"channelName": "DirectLineSpeechChannel",
2526
"properties": {
26-
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
27+
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
2728
"isEnabled": true
2829
}
2930
}
@@ -35,7 +36,7 @@
3536
"properties": {
3637
"channelName": "DirectLineSpeechChannel",
3738
"properties": {
38-
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
39+
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
3940
"isEnabled": true
4041
}
4142
}

specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateDirectLineSpeechChannel.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"properties": {
1111
"channelName": "DirectLineSpeechChannel",
1212
"properties": {
13-
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
13+
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
14+
"cognitiveServiceSubscriptionKey": "XcognitiveServiceSubscriptionKeyX",
1415
"isEnabled": true
1516
}
1617
}
@@ -23,7 +24,7 @@
2324
"properties": {
2425
"channelName": "DirectLineSpeechChannel",
2526
"properties": {
26-
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
27+
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
2728
"isEnabled": true
2829
}
2930
}
@@ -35,7 +36,7 @@
3536
"properties": {
3637
"channelName": "DirectLineSpeechChannel",
3738
"properties": {
38-
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
39+
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
3940
"isEnabled": true
4041
}
4142
}

0 commit comments

Comments
 (0)