Skip to content

Commit

Permalink
updating swagger to match ARM API for DirectLineSpeechChannel (Azure#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
vanshu86 and Vanshika Sinha authored May 13, 2021
1 parent 138df5f commit d4e95e1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1982,9 +1982,14 @@
},
"DirectLineSpeechChannelProperties": {
"properties": {
"cognitiveServicesSubscriptionId": {
"cognitiveServiceRegion": {
"type": "string",
"description": "The cognitive service subscription ID to use with this channel registration."
"description": "The cognitive service region with this channel registration."
},
"cognitiveServiceSubscriptionKey": {
"x-ms-secret": true,
"type": "string",
"description": "The cognitive service subscription key to use with this channel registration."
},
"isEnabled": {
"type": "boolean",
Expand All @@ -2005,7 +2010,8 @@
},
"description": "The parameters to provide for the DirectLine Speech channel.",
"required": [
"cognitiveServicesSubscriptionId"
"cognitiveServiceRegion",
"cognitiveServiceSubscriptionKey"
]
},
"ChannelResponseList": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"properties": {
"channelName": "DirectLineSpeechChannel",
"properties": {
"cognitiveServicesSubscriptionId": "Cognitive services subscription ID",
"cognitiveServiceRegion": "Cognitive service region",
"customVoiceDeploymentId": "Custom voice deployment ID",
"customSpeechModelId": "Custom speech model ID",
"isDefaultBotForCogSvcAccount": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"properties": {
"channelName": "DirectLineSpeechChannel",
"properties": {
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
"cognitiveServiceSubscriptionKey": "XcognitiveServiceSubscriptionKeyX",
"isEnabled": true
}
}
Expand All @@ -23,7 +24,7 @@
"properties": {
"channelName": "DirectLineSpeechChannel",
"properties": {
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
"isEnabled": true
}
}
Expand All @@ -35,7 +36,7 @@
"properties": {
"channelName": "DirectLineSpeechChannel",
"properties": {
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
"isEnabled": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"properties": {
"channelName": "DirectLineSpeechChannel",
"properties": {
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
"cognitiveServiceSubscriptionKey": "XcognitiveServiceSubscriptionKeyX",
"isEnabled": true
}
}
Expand All @@ -23,7 +24,7 @@
"properties": {
"channelName": "DirectLineSpeechChannel",
"properties": {
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
"isEnabled": true
}
}
Expand All @@ -35,7 +36,7 @@
"properties": {
"channelName": "DirectLineSpeechChannel",
"properties": {
"cognitiveServicesSubscriptionId": "XcognitiveServicesSubscriptionIdX",
"cognitiveServiceRegion": "XcognitiveServiceRegionX",
"isEnabled": true
}
}
Expand Down

0 comments on commit d4e95e1

Please sign in to comment.