-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Adding API For QnAMaker v4.0 #4377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Veronica Giaudrone (veronicagg)
merged 24 commits into
Azure:master
from
unknown repository
Nov 19, 2018
Merged
Changes from 12 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c460430
adding v4
d7bd4f3
Addressing comments
d7c47f7
Use Endpoint Template
39614cb
Switch to parameter
873917d
Formatting
f9c021b
linter method issue
65a10fa
examples ALTS
b214917
example keys
f4a3b92
ops example
ba07f39
Add kb example
02e0b62
Adding Create Kb Example
9bfa5be
Download KB Example
6e9fa43
Fix Namespaces
a13985c
model validation errors
2e9afe3
change to octet stream
a8b1976
add consume/produces
c8295f9
remove response body
5c3519e
fix set alt example
aa61ca4
Update Operation Ids
4d8e6ac
Fix case of description
8e3f6e7
Enums as strings
74a8aad
Adding md files for other langs
ee45ed4
Update Ruby readme
6d39886
remove x-enumNames
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
specification/cognitiveservices/data-plane/QnAMaker/readme.go.md
This file contains hidden or 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,26 @@ | ||
| ## Go | ||
|
|
||
| These settings apply only when `--go` is specified on the command line. | ||
|
|
||
| ``` yaml $(go) | ||
| go: | ||
| license-header: MICROSOFT_APACHE_NO_VERSION | ||
| namespace: face | ||
| clear-output-folder: true | ||
| ``` | ||
|
|
||
| ### Go multi-api | ||
|
|
||
| ``` yaml $(go) && $(multiapi) | ||
| batch: | ||
| - tag: release_4_0 | ||
| ``` | ||
|
|
||
| ### Tag: release_4_0 and go | ||
|
|
||
| These settings apply only when `--tag=release_4_0 --go` is specified on the command line. | ||
| Please also specify `--go-sdk-folder=<path to the root directory of your azure-sdk-for-go clone>`. | ||
|
|
||
| ``` yaml $(tag) == 'release_1_0' && $(go) | ||
| output-folder: $(go-sdk-folder)/services/cognitiveservices/v4.0/$(namespace) | ||
| ``` |
99 changes: 99 additions & 0 deletions
99
specification/cognitiveservices/data-plane/QnAMaker/readme.md
This file contains hidden or 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,99 @@ | ||
| # Cognitive Services QnAMaker SDK | ||
|
|
||
| > see https://aka.ms/autorest | ||
|
|
||
| Configuration for generating QnAMaker SDK. | ||
|
|
||
| The current release is `release_4_0`. | ||
|
|
||
| ``` yaml | ||
|
|
||
| tag: release_4_0 | ||
| add-credentials: true | ||
| openapi-type: data-plane | ||
| ``` | ||
| # Releases | ||
|
|
||
| ### Release 4.0 | ||
| These settings apply only when `--tag=release_4_0` is specified on the command line. | ||
|
|
||
| ``` yaml $(tag) == 'release_4_0' | ||
| input-file: stable/v4.0/QnAMaker.json | ||
| ``` | ||
|
|
||
| ## Swagger to SDK | ||
|
|
||
| This section describes what SDK should be generated by the automatic system. | ||
| This is not used by Autorest itself. | ||
|
|
||
| ``` yaml $(swagger-to-sdk) | ||
| swagger-to-sdk: | ||
| - repo: azure-sdk-for-python | ||
| - repo: azure-sdk-for-java | ||
| - repo: azure-sdk-for-go | ||
| - repo: azure-sdk-for-js | ||
| - repo: azure-sdk-for-node | ||
| - repo: azure-sdk-for-ruby | ||
| after_scripts: | ||
| - bundle install && rake arm:regen_all_profiles['azure_cognitiveservices_qnamaker'] | ||
| ``` | ||
|
|
||
|
|
||
| ## CSharp Settings | ||
| These settings apply only when `--csharp` is specified on the command line. | ||
| ``` yaml $(csharp) | ||
| csharp: | ||
|
This conversation was marked as resolved.
|
||
| sync-methods: None | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| azure-arm: false | ||
| namespace: Microsoft.Azure.CognitiveServices.QnAMaker | ||
|
This conversation was marked as resolved.
Outdated
|
||
| output-folder: $(csharp-sdks-folder)/CognitiveServices/dataPlane/QnAMaker/Generated | ||
|
This conversation was marked as resolved.
Outdated
|
||
| clear-output-folder: true | ||
| ``` | ||
|
|
||
| ## 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>`. | ||
| Use `--python-mode=update` if you already have a setup.py and just want to update the code itself. | ||
|
|
||
| ``` yaml $(python) | ||
| python-mode: create | ||
| python: | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| add-credentials: true | ||
| payload-flattening-threshold: 2 | ||
| namespace: azure.cognitiveservices.qnamaker | ||
| package-name: azure-cognitiveservices-qnamaker | ||
| clear-output-folder: true | ||
| ``` | ||
| ``` yaml $(python) && $(python-mode) == 'update' | ||
| python: | ||
| no-namespace-folders: true | ||
| output-folder: $(python-sdks-folder)/azure-cognitiveservices-qnamaker/azure/cognitiveservices/qnamaker | ||
| ``` | ||
| ``` yaml $(python) && $(python-mode) == 'create' | ||
| python: | ||
| basic-setup-py: true | ||
| output-folder: $(python-sdks-folder)/azure-cognitiveservices-qnamaker | ||
| ``` | ||
|
|
||
| ## Go | ||
|
|
||
| See configuration in [readme.go.md](./readme.go.md) | ||
|
|
||
| ## Java | ||
|
|
||
| These settings apply only when `--java` is specified on the command line. | ||
| Please also specify `--azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>`. | ||
|
|
||
| ``` yaml $(java) | ||
| java: | ||
| azure-arm: true | ||
| namespace: com.microsoft.azure.cognitiveservices.qnamaker | ||
| license-header: MICROSOFT_MIT_NO_CODEGEN | ||
| payload-flattening-threshold: 1 | ||
| output-folder: $(azure-libraries-for-java-folder)/cognitiveservices/data-plane/qnamaker | ||
| with-optional-parameters: true | ||
| with-single-async-method: true | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.