Skip to content

Commit b7587ef

Browse files
galmoshegamoshe
authored andcommitted
change boolean to enum (Azure#13344)
Co-authored-by: Gal Moshe <gamoshe@microsoft.com>
1 parent 5fc2588 commit b7587ef

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Get.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tiStatus": "Ok",
2222
"tiVersion": "2020-11-17T12:31:25Z",
2323
"zone": "Zone Name",
24-
"isEnterpriseSensor": false
24+
"sensorType": "Ot"
2525
}
2626
}
2727
}

specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/List.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"tiStatus": "Ok",
2323
"tiVersion": "2020-11-17T12:31:25Z",
2424
"zone": "Zone Name",
25-
"isEnterpriseSensor": false
25+
"sensorType": "Ot"
2626
}
2727
},
2828
{
@@ -40,7 +40,7 @@
4040
"tiStatus": "Ok",
4141
"tiVersion": "2020-11-17T12:31:25Z",
4242
"zone": "Zone Name",
43-
"isEnterpriseSensor": false
43+
"sensorType": "Ot"
4444
}
4545
}
4646
]

specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/examples/IotSensors/Put.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"properties": {
88
"tiAutomaticUpdates": true,
99
"zone": "Zone Name",
10-
"isEnterpriseSensor": false
10+
"sensorType": "Ot"
1111
}
1212
}
1313
},
@@ -28,7 +28,7 @@
2828
"tiStatus": "Ok",
2929
"tiVersion": "2020-11-17T12:31:25Z",
3030
"zone": "Zone Name",
31-
"isEnterpriseSensor": false
31+
"sensorType": "Ot"
3232
}
3333
}
3434
},
@@ -48,7 +48,7 @@
4848
"tiStatus": "Ok",
4949
"tiVersion": "2020-11-17T12:31:25Z",
5050
"zone": "Zone Name",
51-
"isEnterpriseSensor": false
51+
"sensorType": "Ot"
5252
}
5353
}
5454
}

specification/security/resource-manager/Microsoft.Security/preview/2020-08-06-preview/iotSensors.json

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,26 @@
462462
"description": "Zone of the IoT sensor",
463463
"example": "A12"
464464
},
465-
"isEnterpriseSensor": {
466-
"description": "Is type of sensor is enterprise IoT sensor",
467-
"example": true,
468-
"type": "boolean"
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+
}
469485
}
470486
}
471487
},

0 commit comments

Comments
 (0)