Skip to content

Commit f317511

Browse files
authored
Updating with Patch changes (#12149)
* First set of changes * Small updates * Updated schema to include object * Small tweaks * Reverted schema, and changed readme suppression * Fixing readme format suppression * Removing unreferenced files * Adding additional suppress * Removing the new suppressions * Suppression fix removing whitelines * Different indents * Removing longrunningoperation suppressions * Fixing linter problem * Updating suppression again * Removing suppression * Updating operationIds to create * Updating a few properties * Updating remove to delete * Reverting changes back to "remove"
1 parent 57e4143 commit f317511

20 files changed

+588
-45
lines changed

specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/continuousdataexports_set.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"title": "Create or update export",
3-
"description": "Create a new export or update an existing export, specifying its Id.",
2+
"title": "Create or replace export",
3+
"description": "Create a new export or replace an existing export, specifying its Id.",
44
"parameters": {
55
"centralDnsSuffixInPath": "azureiotcentral.com",
66
"subdomain": "appsubdomain",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"title": "Update export",
3+
"description": "Update parts of an existing continuous data export, specifying its Id.",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"export_id": "abc",
8+
"body": {
9+
"displayName": "Updated export name",
10+
"endpoint": {
11+
"type": "StorageEndpoint",
12+
"connectionString": "<updated connection string>",
13+
"name": "Blob 1"
14+
},
15+
"enabled": false,
16+
"sources": [
17+
"devices",
18+
"deviceTemplates",
19+
"telemetry"
20+
]
21+
}
22+
},
23+
"responses": {
24+
"200": {
25+
"body": {
26+
"id": "abc",
27+
"etag": "493aface-4c5e-4318-89e9-f6586f687009",
28+
"displayName": "Updated export name",
29+
"endpoint": {
30+
"type": "StorageEndpoint",
31+
"connectionString": "<updated connection string",
32+
"name": "Blob 1"
33+
},
34+
"status": "stopped",
35+
"enabled": false,
36+
"sources": [
37+
"devices",
38+
"deviceTemplates",
39+
"telemetry"
40+
]
41+
}
42+
}
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"title": "Replace cloud properties of a device",
3+
"description": "Replace cloud properties of a device.",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"body": {
8+
"AssetID": "123abc"
9+
},
10+
"device_id": "mx1"
11+
},
12+
"responses": {
13+
"200": {
14+
"body": {
15+
"AssetID": "123abc"
16+
}
17+
}
18+
}
19+
}

specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_cloudproperties_update.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"title": "Update cloud properties of a device",
3-
"description": "Update cloud properties of a device.",
3+
"description": "Update some or all cloud properties of a device.",
44
"parameters": {
55
"centralDnsSuffixInPath": "azureiotcentral.com",
66
"subdomain": "appsubdomain",
77
"body": {
8-
"AssetID": "123abc"
8+
"AssetID": "updated value"
99
},
1010
"device_id": "mx1"
1111
},
1212
"responses": {
1313
"200": {
1414
"body": {
15-
"AssetID": "123abc"
15+
"AssetID": "updated value"
1616
}
1717
}
1818
}

specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_commands_send.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,24 @@
88
"component_name": "Thermostat_1o",
99
"command_name": "CoolDown",
1010
"body": {
11+
"connectionTimeout": 10,
12+
"responseTimeout": 10,
1113
"request": {
1214
"tempVal": 30
1315
}
1416
}
1517
},
1618
"responses": {
1719
"201": {
18-
"body": {}
20+
"body": {
21+
"request": {
22+
"tempVal": 30
23+
},
24+
"connectionTimeout": 10,
25+
"responseTimeout": 10,
26+
"response": "Sample response value",
27+
"responseCode": 200
28+
}
1929
}
2030
}
2131
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"title": "Update device properties in component",
3+
"description": "Update some or all of the read-write property values within a component of a device.",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"device_id": "mx1",
8+
"component_name": "settings",
9+
"body": {
10+
"fanSpeed": 101,
11+
"irSwitch": true
12+
}
13+
},
14+
"responses": {
15+
"202": {
16+
"body": {
17+
"$metadata": {
18+
"fanSpeed": {
19+
"desiredValue": 101
20+
},
21+
"irSwitch": {
22+
"desiredValue": true
23+
}
24+
}
25+
}
26+
}
27+
}
28+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"title": "Set device properties",
3+
"description": "Replace the values of read-write device properties of a device",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"device_id": "mx1",
8+
"body": {
9+
"settings": {
10+
"voltage": 25,
11+
"current": 7
12+
}
13+
}
14+
},
15+
"responses": {
16+
"202": {
17+
"body": {
18+
"settings": {
19+
"$metadata": {
20+
"voltage": {
21+
"desiredValue": 25
22+
},
23+
"current": {
24+
"desiredValue": 7
25+
}
26+
}
27+
}
28+
}
29+
}
30+
}
31+
}

specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_properties_update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"title": "Update device properties",
3-
"description": "Update the values of read-write properties of a device",
3+
"description": "Update some or all values of read-write device properties of a device",
44
"parameters": {
55
"centralDnsSuffixInPath": "azureiotcentral.com",
66
"subdomain": "appsubdomain",

specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_create.json renamed to specification/iotcentral/data-plane/Microsoft.IoTCentral/preview/2019-10-28-preview/examples/devices_set.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"title": "Create a device",
3-
"description": "Create a device with an Id.",
2+
"title": "Create or replace a device",
3+
"description": "Create or replace device with an Id.",
44
"parameters": {
55
"centralDnsSuffixInPath": "azureiotcentral.com",
66
"subdomain": "appsubdomain",
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"title": "Update a device",
3+
"description": "Update parts of an existing device with an Id.",
4+
"parameters": {
5+
"centralDnsSuffixInPath": "azureiotcentral.com",
6+
"subdomain": "appsubdomain",
7+
"device_id": "ccc",
8+
"body": {
9+
"displayName": "Updated displayName",
10+
"instanceOf": "urn:baacbx8bk:modelDefinition:lgxugnniks",
11+
"approved": false
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"id": "ccc",
18+
"etag": "eyJoZWFkZXIiOiJcIjAxMDAyNmVjLTAwMDAtMGQwMC0wMDAwLTVkYmZkMjFhMDAwMFwiIn0",
19+
"displayName": "Updated displayName",
20+
"instanceOf": "urn:baacbx8bk:modelDefinition:lgxugnniks",
21+
"simulated": false,
22+
"provisioned": true,
23+
"approved": false
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)