forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IoTC 2011 Adding jobs, DTDLv2 templates, groups (Azure#11622)
* Adding jobs, DTDLv2 templates, groups * Spelling mistakes fix * Trying to suppress email lint * Small update to fix linter * Added additional suppression for long running ops * Again * Updated again * Removing the other suppressors * New suppression without quotes * back to just email suppression
- Loading branch information
Showing
11 changed files
with
817 additions
and
478 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
32 changes: 32 additions & 0 deletions
32
...ata-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devicegroups_list.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,32 @@ | ||
{ | ||
"title": "DeviceGroup List", | ||
"description": "List all device groups in your application.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "475cad48-b7ff-4a09-b51e-1a9021385453", | ||
"displayName": "DeviceGroupEntry1" | ||
}, | ||
{ | ||
"id": "c2d5ae1d-2cb7-4f58-bf44-5e816aba0a0e", | ||
"displayName": "DeviceGroupEntry2" | ||
}, | ||
{ | ||
"id": "241ad72b-32aa-4216-aabe-91b240582c8d", | ||
"displayName": "DeviceGroupEntry3" | ||
}, | ||
{ | ||
"id": "241ad72b-32aa-4216-aabe-91b240582c8d", | ||
"displayName": "DeviceGroupEntry4" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...tral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/jobs_create.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,39 @@ | ||
{ | ||
"title": "Execute a new job", | ||
"description": "Create and execute a new job via its job definition.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"job_id": "myJobId", | ||
"body": { | ||
"displayName": "My Job", | ||
"group": "475cad48-b7ff-4a09-b51e-1a9021385453", | ||
"data": [ | ||
{ | ||
"type": "PropertyJobData", | ||
"target": "urn:1dgygpt7t:modelDefinition:02uwtefvdy", | ||
"path": "componentName.propertyName", | ||
"value": "updated value" | ||
} | ||
] | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "myJobId", | ||
"displayName": "My Job", | ||
"group": "475cad48-b7ff-4a09-b51e-1a9021385453", | ||
"data": [ | ||
{ | ||
"type": "PropertyJobData", | ||
"target": "urn:1dgygpt7t:modelDefinition:02uwtefvdy", | ||
"path": "componentName.propertyName", | ||
"value": "updated value" | ||
} | ||
], | ||
"status": "running" | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...ral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/jobs_devices.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,37 @@ | ||
{ | ||
"title": "Get device statuses", | ||
"description": "Get the list of individual device statuses by job ID.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"job_id": "myJobId" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "ylleedih6k", | ||
"status": "completed" | ||
}, | ||
{ | ||
"id": "t81v3k204k", | ||
"status": "completed" | ||
}, | ||
{ | ||
"id": "iotc-1", | ||
"status": "completed" | ||
}, | ||
{ | ||
"id": "iotc", | ||
"status": "completed" | ||
}, | ||
{ | ||
"id": "1c5cs18m7k1", | ||
"status": "completed" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...central/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/jobs_get.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,27 @@ | ||
{ | ||
"title": "Get a job by Id", | ||
"description": "Get a job by Id", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"job_id": "myJobId" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "myJobId", | ||
"displayName": "My Job", | ||
"group": "475cad48-b7ff-4a09-b51e-1a9021385453", | ||
"data": [ | ||
{ | ||
"type": "PropertyJobData", | ||
"target": "urn:1dgygpt7t:modelDefinition:02uwtefvdy", | ||
"path": "componentName.propertyName", | ||
"value": "updated value" | ||
} | ||
], | ||
"status": "running" | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...entral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/jobs_list.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,30 @@ | ||
{ | ||
"title": "List jobs", | ||
"description": "List all jobs in your application.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "myJobId", | ||
"displayName": "My Job", | ||
"group": "475cad48-b7ff-4a09-b51e-1a9021385453", | ||
"data": [ | ||
{ | ||
"type": "PropertyJobData", | ||
"target": "urn:1dgygpt7t:modelDefinition:02uwtefvdy", | ||
"path": "componentName.propertyName", | ||
"value": "updated value" | ||
} | ||
], | ||
"status": "running" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ntral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/jobs_rerun.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,28 @@ | ||
{ | ||
"title": "Rerun a job on failed devices", | ||
"description": "Execute a rerun of an existing job on all failed devices.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"job_id": "myJobId", | ||
"rerun_id": "myJobRerunId" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "myJobRerunId", | ||
"displayName": "My Job", | ||
"group": "475cad48-b7ff-4a09-b51e-1a9021385453", | ||
"data": [ | ||
{ | ||
"type": "PropertyJobData", | ||
"target": "urn:1dgygpt7t:modelDefinition:02uwtefvdy", | ||
"path": "componentName.propertyName", | ||
"value": "updated value" | ||
} | ||
], | ||
"status": "running" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...tral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/jobs_resume.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,12 @@ | ||
{ | ||
"title": "Resume a stopped job", | ||
"description": "Resume execution of an existing stoppped job.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"job_id": "myJobId" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...entral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/jobs_stop.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,12 @@ | ||
{ | ||
"title": "Stop a running job", | ||
"description": "Stop execution of a job that is currently running.", | ||
"parameters": { | ||
"centralDnsSuffixInPath": "azureiotcentral.com", | ||
"subdomain": "appsubdomain", | ||
"job_id": "myJobId" | ||
}, | ||
"responses": { | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.