Skip to content

Commit

Permalink
change boolean to enum (#13344)
Browse files Browse the repository at this point in the history
Co-authored-by: Gal Moshe <gamoshe@microsoft.com>
  • Loading branch information
galmoshe and gamoshe authored Mar 12, 2021
1 parent f0093fc commit c16a9a6
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"isEnterpriseSensor": false
"sensorType": "Ot"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"isEnterpriseSensor": false
"sensorType": "Ot"
}
},
{
Expand All @@ -40,7 +40,7 @@
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"isEnterpriseSensor": false
"sensorType": "Ot"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"properties": {
"tiAutomaticUpdates": true,
"zone": "Zone Name",
"isEnterpriseSensor": false
"sensorType": "Ot"
}
}
},
Expand All @@ -28,7 +28,7 @@
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"isEnterpriseSensor": false
"sensorType": "Ot"
}
}
},
Expand All @@ -48,7 +48,7 @@
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"isEnterpriseSensor": false
"sensorType": "Ot"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,26 @@
"description": "Zone of the IoT sensor",
"example": "A12"
},
"isEnterpriseSensor": {
"description": "Is type of sensor is enterprise IoT sensor",
"example": true,
"type": "boolean"
"sensorType": {
"description": "Type of sensor",
"example": "Ot",
"type": "string",
"enum": [
"Ot",
"Enterprise"
],
"x-ms-enum": {
"name": "sensorType",
"modelAsString": true,
"values": [
{
"value": "Ot"
},
{
"value": "Enterprise"
}
]
}
}
}
},
Expand Down

0 comments on commit c16a9a6

Please sign in to comment.