Skip to content

Commit 236c658

Browse files
galmoshegamoshe
authored andcommitted
Eiot sensors type alignment for new provider (Azure#13780)
* change boolean to enum * align new provider with new sensor field * eiot-sensor-type-align Co-authored-by: Gal Moshe <[email protected]>
1 parent b38a0c1 commit 236c658

File tree

4 files changed

+33
-6
lines changed

4 files changed

+33
-6
lines changed

specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Get.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"tiAutomaticUpdates": true,
2020
"tiStatus": "Ok",
2121
"tiVersion": "2020-11-17T12:31:25Z",
22-
"zone": "Zone Name"
22+
"zone": "Zone Name",
23+
"sensorType": "Ot"
2324
},
2425
"systemData": {
2526
"createdBy": "string",

specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/List.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"tiAutomaticUpdates": true,
2121
"tiStatus": "Ok",
2222
"tiVersion": "2020-11-17T12:31:25Z",
23-
"zone": "Zone Name"
23+
"zone": "Zone Name",
24+
"sensorType": "Ot"
2425
},
2526
"systemData": {
2627
"createdBy": "string",
@@ -44,7 +45,8 @@
4445
"tiAutomaticUpdates": true,
4546
"tiStatus": "Ok",
4647
"tiVersion": "2020-11-17T12:31:25Z",
47-
"zone": "Zone Name"
48+
"zone": "Zone Name",
49+
"sensorType": "Ot"
4850
},
4951
"systemData": {
5052
"createdBy": "string",

specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/examples/Sensors/Put.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"sensorModel": {
77
"properties": {
88
"tiAutomaticUpdates": true,
9-
"zone": "Zone Name"
9+
"zone": "Zone Name",
10+
"sensorType": "Ot"
1011
}
1112
}
1213
},
@@ -25,7 +26,8 @@
2526
"tiAutomaticUpdates": true,
2627
"tiStatus": "Ok",
2728
"tiVersion": "2020-11-17T12:31:25Z",
28-
"zone": "Zone Name"
29+
"zone": "Zone Name",
30+
"sensorType": "Ot"
2931
}
3032
}
3133
},
@@ -43,7 +45,8 @@
4345
"tiAutomaticUpdates": true,
4446
"tiStatus": "Ok",
4547
"tiVersion": "2020-11-17T12:31:25Z",
46-
"zone": "Zone Name"
48+
"zone": "Zone Name",
49+
"sensorType": "Ot"
4750
},
4851
"systemData": {
4952
"createdBy": "string",

specification/iotsecurity/resource-manager/Microsoft.IoTSecurity/preview/2021-02-01-preview/sensors.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,27 @@
461461
"type": "string",
462462
"description": "Zone of the IoT sensor",
463463
"example": "A12"
464+
},
465+
"sensorType": {
466+
"description": "Type of sensor",
467+
"example": "Ot",
468+
"type": "string",
469+
"enum": [
470+
"Ot",
471+
"Enterprise"
472+
],
473+
"x-ms-enum": {
474+
"name": "sensorType",
475+
"modelAsString": true,
476+
"values": [
477+
{
478+
"value": "Ot"
479+
},
480+
{
481+
"value": "Enterprise"
482+
}
483+
]
484+
}
464485
}
465486
}
466487
},

0 commit comments

Comments
 (0)