Skip to content

Commit

Permalink
Adding LabelingJob to preview swagger (#10874)
Browse files Browse the repository at this point in the history
* 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
yetamsft authored Feb 3, 2021
1 parent d70b7cc commit 2f29e93
Show file tree
Hide file tree
Showing 8 changed files with 1,320 additions and 4 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1306,6 +1306,7 @@ prebuilts
precache
preconfigured
preflight
prelabel
preload
preloading
prem
Expand Down
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"
}
}
}
}
}
}
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": {}
}
}
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"
}
}
}
}
}
}
Loading

0 comments on commit 2f29e93

Please sign in to comment.