Skip to content

Commit 2f29e93

Browse files
authored
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
1 parent d70b7cc commit 2f29e93

File tree

8 files changed

+1320
-4
lines changed

8 files changed

+1320
-4
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,6 +1306,7 @@ prebuilts
13061306
precache
13071307
preconfigured
13081308
preflight
1309+
prelabel
13091310
preload
13101311
preloading
13111312
prem
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "workspace-1234",
5+
"workspaceName": "testworkspace",
6+
"api-version": "2020-09-01-preview",
7+
"labelingJobId": "testLabelingJob",
8+
"body": {
9+
"properties": {
10+
"datasetConfiguration": {
11+
"assetName": "testdataasset",
12+
"enableIncrementalDatasetRefresh": true,
13+
"datasetVersion": "1"
14+
},
15+
"mlAssistConfiguration": {
16+
"inferencingComputeBinding": {
17+
"computeId": "inferencingcompute"
18+
},
19+
"trainingComputeBinding": {
20+
"computeId": "trainingcompute"
21+
},
22+
"modelNamePrefix": "testmodel_1",
23+
"prelabelAccuracyThreshold": 0.8,
24+
"mlAssistEnabled": true
25+
},
26+
"jobInstructions": {
27+
"uri": "https://www.testjobInstructions.com/labeling1.txt"
28+
},
29+
"labelCategories": {
30+
"testCategory": {
31+
"displayName": "testCategory",
32+
"allowMultiSelect": false,
33+
"classes": {
34+
"testClass1": {
35+
"displayName": "testClass1",
36+
"subclasses": {
37+
"testclass1-1": {
38+
"displayName": "testClass1-1"
39+
}
40+
}
41+
},
42+
"testClass2": {
43+
"displayName": "testClass2"
44+
}
45+
}
46+
}
47+
},
48+
"labelingJobMediaProperties": {
49+
"mediaType": "Image",
50+
"annotationType": "BoundingBox"
51+
},
52+
"properties": {
53+
"additionalProp1": "string",
54+
"additionalProp2": "string",
55+
"additionalProp3": "string"
56+
},
57+
"tags": {
58+
"additionalProp1": "string",
59+
"additionalProp2": "string",
60+
"additionalProp3": "string"
61+
}
62+
}
63+
}
64+
},
65+
"responses": {
66+
"200": {
67+
"body": {
68+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/labelingJobs/testLabelingJob",
69+
"name": "testLabelingJob",
70+
"type": "Microsoft.MachineLearningServices/workspaces/labelingJobs",
71+
"properties": {
72+
"projectId": "c6e088e2-3b60-45c4-ab33-dd8e99722e6a",
73+
"status": "NotStarted",
74+
"createdTimeUtc": "2020-09-06T00:20:20.327Z",
75+
"progressMetrics": {
76+
"totalDatapointCount": 0,
77+
"completedDatapointCount": 0,
78+
"skippedDatapointCount": 0,
79+
"incrementalDatasetLastRefreshTime": "2020-09-06T00:20:20.327Z"
80+
},
81+
"statusMessages": [
82+
{
83+
"level": "Information",
84+
"code": "Test code",
85+
"message": "Test message",
86+
"createdTimeUtc": "2020-09-06T00:20:20.327Z"
87+
}
88+
],
89+
"datasetConfiguration": {
90+
"assetName": "testdataasset",
91+
"enableIncrementalDatasetRefresh": true,
92+
"datasetVersion": "1"
93+
},
94+
"mlAssistConfiguration": {
95+
"inferencingComputeBinding": {
96+
"computeId": "inferencingcompute"
97+
},
98+
"trainingComputeBinding": {
99+
"computeId": "trainingcompute"
100+
},
101+
"modelNamePrefix": "testmodel_1",
102+
"prelabelAccuracyThreshold": 0.8,
103+
"mlAssistEnabled": true
104+
},
105+
"jobInstructions": {
106+
"uri": "https://www.testjobInstructions.com/labeling1.txt"
107+
},
108+
"labelCategories": {
109+
"testCategory": {
110+
"displayName": "testCategory",
111+
"allowMultiSelect": false,
112+
"classes": {
113+
"testClass1": {
114+
"displayName": "testClass1",
115+
"subclasses": {
116+
"testclass1-1": {
117+
"displayName": "testClass1-1"
118+
}
119+
}
120+
},
121+
"testClass2": {
122+
"displayName": "testClass2"
123+
}
124+
}
125+
}
126+
},
127+
"labelingJobMediaProperties": {
128+
"mediaType": "Image",
129+
"annotationType": "BoundingBox"
130+
},
131+
"properties": {
132+
"additionalProp1": "string",
133+
"additionalProp2": "string",
134+
"additionalProp3": "string"
135+
},
136+
"tags": {
137+
"additionalProp1": "string",
138+
"additionalProp2": "string",
139+
"additionalProp3": "string"
140+
}
141+
}
142+
}
143+
},
144+
"201": {
145+
"body": {
146+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/labelingJobs/testLabelingJob",
147+
"name": "testLabelingJob",
148+
"type": "Microsoft.MachineLearningServices/workspaces/labelingJobs",
149+
"properties": {
150+
"projectId": "c6e088e2-3b60-45c4-ab33-dd8e99722e6a",
151+
"status": "NotStarted",
152+
"createdTimeUtc": "2020-09-06T00:20:20.327Z",
153+
"progressMetrics": {
154+
"totalDatapointCount": 0,
155+
"completedDatapointCount": 0,
156+
"skippedDatapointCount": 0,
157+
"incrementalDatasetLastRefreshTime": "2020-09-06T00:20:20.327Z"
158+
},
159+
"statusMessages": [
160+
{
161+
"level": "Information",
162+
"code": "Test code",
163+
"message": "Test message",
164+
"createdTimeUtc": "2020-09-06T00:20:20.327Z"
165+
}
166+
],
167+
"datasetConfiguration": {
168+
"assetName": "testdataasset",
169+
"enableIncrementalDatasetRefresh": true,
170+
"datasetVersion": "1"
171+
},
172+
"mlAssistConfiguration": {
173+
"inferencingComputeBinding": {
174+
"computeId": "inferencingcompute"
175+
},
176+
"trainingComputeBinding": {
177+
"computeId": "trainingcompute"
178+
},
179+
"modelNamePrefix": "testmodel_1",
180+
"prelabelAccuracyThreshold": 0.8,
181+
"mlAssistEnabled": true
182+
},
183+
"jobInstructions": {
184+
"uri": "https://www.testjobInstructions.com/labeling1.txt"
185+
},
186+
"labelCategories": {
187+
"testCategory": {
188+
"displayName": "testCategory",
189+
"allowMultiSelect": false,
190+
"classes": {
191+
"testClass1": {
192+
"displayName": "testClass1",
193+
"subclasses": {
194+
"testclass1-1": {
195+
"displayName": "testClass1-1"
196+
}
197+
}
198+
},
199+
"testClass2": {
200+
"displayName": "testClass2"
201+
}
202+
}
203+
}
204+
},
205+
"labelingJobMediaProperties": {
206+
"mediaType": "Image",
207+
"annotationType": "BoundingBox"
208+
},
209+
"properties": {
210+
"additionalProp1": "string",
211+
"additionalProp2": "string",
212+
"additionalProp3": "string"
213+
},
214+
"tags": {
215+
"additionalProp1": "string",
216+
"additionalProp2": "string",
217+
"additionalProp3": "string"
218+
}
219+
}
220+
}
221+
}
222+
}
223+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "workspace-1234",
5+
"workspaceName": "testworkspace",
6+
"api-version": "2020-09-01-preview",
7+
"labelingJobId": "testLabelingJob"
8+
},
9+
"responses": {
10+
"200": {},
11+
"204": {}
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-1111-2222-3333-444444444444",
4+
"resourceGroupName": "workspace-1234",
5+
"workspaceName": "testworkspace",
6+
"api-version": "2020-09-01-preview",
7+
"labelingJobId": "testLabelingJob",
8+
"includeJobInstructions": true,
9+
"includeLabelCategories": true
10+
},
11+
"responses": {
12+
"200": {
13+
"body": {
14+
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/labelingJobs/testLabelingJob",
15+
"name": "testLabelingJob",
16+
"type": "Microsoft.MachineLearningServices/workspaces/labelingJobs",
17+
"properties": {
18+
"projectId": "c6e088e2-3b60-45c4-ab33-dd8e99722e6a",
19+
"status": "NotStarted",
20+
"createdTimeUtc": "2020-09-06T00:20:20.327Z",
21+
"progressMetrics": {
22+
"totalDatapointCount": 0,
23+
"completedDatapointCount": 0,
24+
"skippedDatapointCount": 0,
25+
"incrementalDatasetLastRefreshTime": "2020-09-06T00:20:20.327Z"
26+
},
27+
"statusMessages": [
28+
{
29+
"level": "Information",
30+
"code": "Test code",
31+
"message": "Test message",
32+
"createdTimeUtc": "2020-09-06T00:20:20.327Z"
33+
}
34+
],
35+
"datasetConfiguration": {
36+
"assetName": "testdataasset",
37+
"enableIncrementalDatasetRefresh": true,
38+
"datasetVersion": "1"
39+
},
40+
"mlAssistConfiguration": {
41+
"inferencingComputeBinding": {
42+
"computeId": "inferencingcompute"
43+
},
44+
"trainingComputeBinding": {
45+
"computeId": "trainingcompute"
46+
},
47+
"modelNamePrefix": "testmodel_1",
48+
"prelabelAccuracyThreshold": 0.8,
49+
"mlAssistEnabled": true
50+
},
51+
"jobInstructions": {
52+
"uri": "https://www.testjobInstructions.com/labeling1.txt"
53+
},
54+
"labelCategories": {
55+
"testCategory": {
56+
"displayName": "testCategory",
57+
"allowMultiSelect": false,
58+
"classes": {
59+
"testClass1": {
60+
"displayName": "testClass1",
61+
"subclasses": {
62+
"testclass1-1": {
63+
"displayName": "testClass1-1"
64+
}
65+
}
66+
},
67+
"testClass2": {
68+
"displayName": "testClass2"
69+
}
70+
}
71+
}
72+
},
73+
"labelingJobMediaProperties": {
74+
"mediaType": "Image",
75+
"annotationType": "BoundingBox"
76+
},
77+
"properties": {
78+
"additionalProp1": "string",
79+
"additionalProp2": "string",
80+
"additionalProp3": "string"
81+
},
82+
"tags": {
83+
"additionalProp1": "string",
84+
"additionalProp2": "string",
85+
"additionalProp3": "string"
86+
}
87+
}
88+
}
89+
}
90+
}
91+
}

0 commit comments

Comments
 (0)