-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add Custom Vision swagger #2177
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
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
15d08bc
Custom Vision Swagger files
areddish f2a50d0
Add examples
areddish 31075b6
Fix JSON
areddish 252ab9c
Rename directories to match version
areddish e9853b6
Update Python Packaging. Single package, two clients.
areddish 8203efe
Remove BOM
areddish 0d4e675
Add automatic Python conf for Custom Vision Prediction
lmazuel 049c2dd
Add automatic Python conf to Custom Vision Training
lmazuel 3f67dbc
Update status codes for Delete* operations.
areddish 599b211
Fix Prediction Examples
areddish 889a860
Update Examples
areddish 81ca93e
Add missing examples
areddish cef4c39
Update consumes for multipart
areddish 8b12747
Add Content-Type to examples
areddish 851cb5d
Fix examples
areddish e274a71
Suppress came case property names
areddish 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
78 changes: 78 additions & 0 deletions
78
specification/cognitiveservices/data-plane/CustomVision/Prediction/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,78 @@ | ||
| # Cognitive Services Custom Vision SDK | ||
|
|
||
| > see https://aka.ms/autorest | ||
|
|
||
| Configuration for generating Custom Vision Prediction SDK. | ||
|
|
||
| The current release is `release_1_0`. | ||
|
|
||
| ``` yaml | ||
|
|
||
| tag: release_1_0 | ||
| openapi-type: data-plane | ||
| ``` | ||
| # Releases | ||
|
|
||
| ### Release 1.0 | ||
| These settings apply only when `--tag=release_1_0` is specified on the command line. | ||
|
|
||
| ``` yaml $(tag) == 'release_1_0' | ||
| input-file: v1.1/Prediction.json | ||
| ``` | ||
|
|
||
| # Code Generation | ||
|
|
||
| ## Suppression | ||
| ``` yaml | ||
| directive: | ||
| - suppress: DefinitionsPropertiesNamesCamelCase | ||
| reason: Live service and portal doesn't use came case properties | ||
| ``` | ||
|
|
||
| ## 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 | ||
| ``` | ||
|
|
||
| ## CSharp Settings | ||
| These settings apply only when `--csharp` is specified on the command line. | ||
| ``` yaml $(csharp) | ||
| csharp: | ||
| sync-methods: None | ||
| license-header: MICROSOFT_MIT_NO_VERSION | ||
| azure-arm: false | ||
| namespace: Microsoft.Azure.CognitiveServices.Vision.CustomVision.Prediction | ||
| output-folder: $(csharp-sdks-folder)/CognitiveServices/dataPlane/Vision/Vision/Generated/CustomVision/Prediction | ||
| 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 | ||
| payload-flattening-threshold: 2 | ||
| namespace: azure.cognitiveservices.vision.customvision.prediction | ||
| package-name: azure-cognitiveservices-vision-customvision | ||
| clear-output-folder: true | ||
| ``` | ||
| ``` yaml $(python) && $(python-mode) == 'update' | ||
| python: | ||
| no-namespace-folders: true | ||
| output-folder: $(python-sdks-folder)/azure-cognitiveservices-vision-customvision/azure/cognitiveservices/vision/customvision/prediction | ||
| ``` | ||
| ``` yaml $(python) && $(python-mode) == 'create' | ||
| python: | ||
| basic-setup-py: true | ||
| output-folder: $(python-sdks-folder)/azure-cognitiveservices-vision-customvision | ||
| ``` | ||
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just
azure.cognitiveservices.vision.customvisionThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed by email, this is ok