-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding LabelingJob to preview swagger (#10874)
* Add labeling jobs operations in spec and examples * Fix labeling job id * move to jobs.json following codeJob pattern * fix eol * Fix readme.md * Fix spec failures * fix spec * Fix deleteLabelingJob * Fix status message list * fix * Fix prettier * handle polymorphic objects * Fix discriminator * Fix polyphorphic def * Fix * Fix * fix * fix * Fix lintdiff error * Fix conflict * Fix LintDiff * Fix LintDiff * Remove id and continuation token. Address comments * Fix LintDiff * Fix * Update azuresourceschema.md * Fix LintDiff * Fix LintDiff * Fix LintDiff
- Loading branch information
Showing
8 changed files
with
1,320 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -1306,6 +1306,7 @@ prebuilts | |
precache | ||
preconfigured | ||
preflight | ||
prelabel | ||
preload | ||
preloading | ||
prem | ||
|
223 changes: 223 additions & 0 deletions
223
...achineLearningServices/preview/2020-09-01-preview/examples/createOrUpdateLabelingJob.json
This file contains 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,223 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "workspace-1234", | ||
"workspaceName": "testworkspace", | ||
"api-version": "2020-09-01-preview", | ||
"labelingJobId": "testLabelingJob", | ||
"body": { | ||
"properties": { | ||
"datasetConfiguration": { | ||
"assetName": "testdataasset", | ||
"enableIncrementalDatasetRefresh": true, | ||
"datasetVersion": "1" | ||
}, | ||
"mlAssistConfiguration": { | ||
"inferencingComputeBinding": { | ||
"computeId": "inferencingcompute" | ||
}, | ||
"trainingComputeBinding": { | ||
"computeId": "trainingcompute" | ||
}, | ||
"modelNamePrefix": "testmodel_1", | ||
"prelabelAccuracyThreshold": 0.8, | ||
"mlAssistEnabled": true | ||
}, | ||
"jobInstructions": { | ||
"uri": "https://www.testjobInstructions.com/labeling1.txt" | ||
}, | ||
"labelCategories": { | ||
"testCategory": { | ||
"displayName": "testCategory", | ||
"allowMultiSelect": false, | ||
"classes": { | ||
"testClass1": { | ||
"displayName": "testClass1", | ||
"subclasses": { | ||
"testclass1-1": { | ||
"displayName": "testClass1-1" | ||
} | ||
} | ||
}, | ||
"testClass2": { | ||
"displayName": "testClass2" | ||
} | ||
} | ||
} | ||
}, | ||
"labelingJobMediaProperties": { | ||
"mediaType": "Image", | ||
"annotationType": "BoundingBox" | ||
}, | ||
"properties": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
}, | ||
"tags": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/labelingJobs/testLabelingJob", | ||
"name": "testLabelingJob", | ||
"type": "Microsoft.MachineLearningServices/workspaces/labelingJobs", | ||
"properties": { | ||
"projectId": "c6e088e2-3b60-45c4-ab33-dd8e99722e6a", | ||
"status": "NotStarted", | ||
"createdTimeUtc": "2020-09-06T00:20:20.327Z", | ||
"progressMetrics": { | ||
"totalDatapointCount": 0, | ||
"completedDatapointCount": 0, | ||
"skippedDatapointCount": 0, | ||
"incrementalDatasetLastRefreshTime": "2020-09-06T00:20:20.327Z" | ||
}, | ||
"statusMessages": [ | ||
{ | ||
"level": "Information", | ||
"code": "Test code", | ||
"message": "Test message", | ||
"createdTimeUtc": "2020-09-06T00:20:20.327Z" | ||
} | ||
], | ||
"datasetConfiguration": { | ||
"assetName": "testdataasset", | ||
"enableIncrementalDatasetRefresh": true, | ||
"datasetVersion": "1" | ||
}, | ||
"mlAssistConfiguration": { | ||
"inferencingComputeBinding": { | ||
"computeId": "inferencingcompute" | ||
}, | ||
"trainingComputeBinding": { | ||
"computeId": "trainingcompute" | ||
}, | ||
"modelNamePrefix": "testmodel_1", | ||
"prelabelAccuracyThreshold": 0.8, | ||
"mlAssistEnabled": true | ||
}, | ||
"jobInstructions": { | ||
"uri": "https://www.testjobInstructions.com/labeling1.txt" | ||
}, | ||
"labelCategories": { | ||
"testCategory": { | ||
"displayName": "testCategory", | ||
"allowMultiSelect": false, | ||
"classes": { | ||
"testClass1": { | ||
"displayName": "testClass1", | ||
"subclasses": { | ||
"testclass1-1": { | ||
"displayName": "testClass1-1" | ||
} | ||
} | ||
}, | ||
"testClass2": { | ||
"displayName": "testClass2" | ||
} | ||
} | ||
} | ||
}, | ||
"labelingJobMediaProperties": { | ||
"mediaType": "Image", | ||
"annotationType": "BoundingBox" | ||
}, | ||
"properties": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
}, | ||
"tags": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
} | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/labelingJobs/testLabelingJob", | ||
"name": "testLabelingJob", | ||
"type": "Microsoft.MachineLearningServices/workspaces/labelingJobs", | ||
"properties": { | ||
"projectId": "c6e088e2-3b60-45c4-ab33-dd8e99722e6a", | ||
"status": "NotStarted", | ||
"createdTimeUtc": "2020-09-06T00:20:20.327Z", | ||
"progressMetrics": { | ||
"totalDatapointCount": 0, | ||
"completedDatapointCount": 0, | ||
"skippedDatapointCount": 0, | ||
"incrementalDatasetLastRefreshTime": "2020-09-06T00:20:20.327Z" | ||
}, | ||
"statusMessages": [ | ||
{ | ||
"level": "Information", | ||
"code": "Test code", | ||
"message": "Test message", | ||
"createdTimeUtc": "2020-09-06T00:20:20.327Z" | ||
} | ||
], | ||
"datasetConfiguration": { | ||
"assetName": "testdataasset", | ||
"enableIncrementalDatasetRefresh": true, | ||
"datasetVersion": "1" | ||
}, | ||
"mlAssistConfiguration": { | ||
"inferencingComputeBinding": { | ||
"computeId": "inferencingcompute" | ||
}, | ||
"trainingComputeBinding": { | ||
"computeId": "trainingcompute" | ||
}, | ||
"modelNamePrefix": "testmodel_1", | ||
"prelabelAccuracyThreshold": 0.8, | ||
"mlAssistEnabled": true | ||
}, | ||
"jobInstructions": { | ||
"uri": "https://www.testjobInstructions.com/labeling1.txt" | ||
}, | ||
"labelCategories": { | ||
"testCategory": { | ||
"displayName": "testCategory", | ||
"allowMultiSelect": false, | ||
"classes": { | ||
"testClass1": { | ||
"displayName": "testClass1", | ||
"subclasses": { | ||
"testclass1-1": { | ||
"displayName": "testClass1-1" | ||
} | ||
} | ||
}, | ||
"testClass2": { | ||
"displayName": "testClass2" | ||
} | ||
} | ||
} | ||
}, | ||
"labelingJobMediaProperties": { | ||
"mediaType": "Image", | ||
"annotationType": "BoundingBox" | ||
}, | ||
"properties": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
}, | ||
"tags": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...rosoft.MachineLearningServices/preview/2020-09-01-preview/examples/deleteLabelingJob.json
This file contains 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,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "workspace-1234", | ||
"workspaceName": "testworkspace", | ||
"api-version": "2020-09-01-preview", | ||
"labelingJobId": "testLabelingJob" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
91 changes: 91 additions & 0 deletions
91
...Microsoft.MachineLearningServices/preview/2020-09-01-preview/examples/getLabelingJob.json
This file contains 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,91 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "workspace-1234", | ||
"workspaceName": "testworkspace", | ||
"api-version": "2020-09-01-preview", | ||
"labelingJobId": "testLabelingJob", | ||
"includeJobInstructions": true, | ||
"includeLabelCategories": true | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/labelingJobs/testLabelingJob", | ||
"name": "testLabelingJob", | ||
"type": "Microsoft.MachineLearningServices/workspaces/labelingJobs", | ||
"properties": { | ||
"projectId": "c6e088e2-3b60-45c4-ab33-dd8e99722e6a", | ||
"status": "NotStarted", | ||
"createdTimeUtc": "2020-09-06T00:20:20.327Z", | ||
"progressMetrics": { | ||
"totalDatapointCount": 0, | ||
"completedDatapointCount": 0, | ||
"skippedDatapointCount": 0, | ||
"incrementalDatasetLastRefreshTime": "2020-09-06T00:20:20.327Z" | ||
}, | ||
"statusMessages": [ | ||
{ | ||
"level": "Information", | ||
"code": "Test code", | ||
"message": "Test message", | ||
"createdTimeUtc": "2020-09-06T00:20:20.327Z" | ||
} | ||
], | ||
"datasetConfiguration": { | ||
"assetName": "testdataasset", | ||
"enableIncrementalDatasetRefresh": true, | ||
"datasetVersion": "1" | ||
}, | ||
"mlAssistConfiguration": { | ||
"inferencingComputeBinding": { | ||
"computeId": "inferencingcompute" | ||
}, | ||
"trainingComputeBinding": { | ||
"computeId": "trainingcompute" | ||
}, | ||
"modelNamePrefix": "testmodel_1", | ||
"prelabelAccuracyThreshold": 0.8, | ||
"mlAssistEnabled": true | ||
}, | ||
"jobInstructions": { | ||
"uri": "https://www.testjobInstructions.com/labeling1.txt" | ||
}, | ||
"labelCategories": { | ||
"testCategory": { | ||
"displayName": "testCategory", | ||
"allowMultiSelect": false, | ||
"classes": { | ||
"testClass1": { | ||
"displayName": "testClass1", | ||
"subclasses": { | ||
"testclass1-1": { | ||
"displayName": "testClass1-1" | ||
} | ||
} | ||
}, | ||
"testClass2": { | ||
"displayName": "testClass2" | ||
} | ||
} | ||
} | ||
}, | ||
"labelingJobMediaProperties": { | ||
"mediaType": "Image", | ||
"annotationType": "BoundingBox" | ||
}, | ||
"properties": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
}, | ||
"tags": { | ||
"additionalProp1": "string", | ||
"additionalProp2": "string", | ||
"additionalProp3": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.