Skip to content

Commit

Permalink
Old version as PR baseline
Browse files Browse the repository at this point in the history
  • Loading branch information
Orel Kayam committed Jun 28, 2021
1 parent b313aa5 commit d963f3a
Show file tree
Hide file tree
Showing 14 changed files with 1,146 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
],
"typescript.tsdk": "node_modules\\typescript\\lib",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "vscode.json-language-features"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"sensorName": "mySensor"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"sensorName": "mySensor"
},
"responses": {
"200": {
"headers": {
"content-type": "application/zip"
},
"body": "{Binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"sensorName": "mySensor",
"body": {
"applianceId": "3214-528AV23-D121-D3-E1"
}
},
"responses": {
"200": {
"headers": {
"content-type": "application/zip"
},
"body": "{Binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"sensorName": "mySensor"
},
"responses": {
"200": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor",
"type": "Microsoft.IoTSecurity/sensors",
"properties": {
"connectivityTime": "2020-11-17T12:31:25Z",
"dynamicLearning": true,
"learningMode": true,
"sensorStatus": "Ok",
"sensorVersion": "2020.11.01.1643",
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor",
"type": "Microsoft.IoTSecurity/sensors",
"properties": {
"connectivityTime": "2020-11-17T12:31:25Z",
"dynamicLearning": true,
"learningMode": true,
"sensorStatus": "Ok",
"sensorVersion": "2020.11.01.1643",
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
},
{
"name": "otherSensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/otherSensor",
"type": "Microsoft.IoTSecurity/sensors",
"properties": {
"connectivityTime": "2020-11-17T12:31:25Z",
"dynamicLearning": false,
"learningMode": false,
"sensorStatus": "Disconnected",
"sensorVersion": "2020.11.01.1643",
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"sensorName": "mySensor",
"sensorModel": {
"properties": {
"tiAutomaticUpdates": true,
"zone": "Zone Name",
"sensorType": "Ot"
}
}
},
"responses": {
"200": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor",
"type": "Microsoft.IoTSecurity/sensors",
"properties": {
"connectivityTime": "2020-11-17T12:31:25Z",
"dynamicLearning": true,
"learningMode": true,
"sensorStatus": "Ok",
"sensorVersion": "2020.11.01.1643",
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"sensorType": "Ot"
}
}
},
"201": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor",
"type": "Microsoft.IoTSecurity/sensors",
"properties": {
"connectivityTime": "2020-11-17T12:31:25Z",
"dynamicLearning": true,
"learningMode": true,
"sensorStatus": "Ok",
"sensorVersion": "2020.11.01.1643",
"tiAutomaticUpdates": true,
"tiStatus": "Ok",
"tiVersion": "2020-11-17T12:31:25Z",
"zone": "Zone Name",
"sensorType": "Ot"
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"sensorName": "mySensor"
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default",
"type": "Microsoft.IoTSecurity/sites",
"name": "default",
"properties": {
"displayName": "IoT site name",
"tags": {
"key1": "value1",
"key2": "value2"
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/sites"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "default",
"id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default",
"type": "Microsoft.IoTSecurity/sites",
"properties": {
"displayName": "IoT site name",
"tags": {
"key1": "value1",
"key2": "value2"
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
"siteModel": {
"properties": {
"displayName": "IoT site name",
"tags": {
"key1": "value1",
"key2": "value2"
}
}
}
},
"responses": {
"200": {
"body": {
"name": "default",
"id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default",
"type": "Microsoft.IoTSecurity/sites",
"properties": {
"displayName": "IoT site name",
"tags": {
"key1": "value1",
"key2": "value2"
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
},
"201": {
"body": {
"name": "default",
"id": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sites/default",
"type": "Microsoft.IoTSecurity/sites",
"properties": {
"displayName": "IoT site name",
"tags": {
"key1": "value1",
"key2": "value2"
}
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2020-04-27T21:53:29.0928001Z",
"lastModifiedBy": "string",
"lastModifiedByType": "User",
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
}
}
}
}
}
Loading

0 comments on commit d963f3a

Please sign in to comment.