Skip to content

Commit 855349e

Browse files
orkayamOrel Kayam
andauthored
Add sites, sensors and onPremiseSensors resources (#12991)
* Add Microsoft.IoTSecurity provider * Run prettier * Add MD * rename files * update MD * resolve the Avocado * Remove unused files * Add operations API * update operations.json * update markdown * remove dot * re-use types * remove comma * Remove duplicated common types * Use ProxyResource * Remove IoT prefix * Add example * undo changes * Run prettier * Use capital letter * run prettier * Add sites, sensors and onPremiseSensors resources * update markdowns * run prettier * Fix broken parameter * Re-trigger Validations * Add systemData * Run prettier * add systemData * Run prettier * Align changes * Undo Microsoft.Security changes * Add systemData to example * Fix PR comments * Update example Co-authored-by: Orel Kayam <orkayam@microsoft.com>
1 parent f0d04a6 commit 855349e

File tree

22 files changed

+1640
-0
lines changed

22 files changed

+1640
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc24",
5+
"onPremiseSensorName": "mySensor"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"onPremiseSensorName": "mySensor"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"content-type": "application/zip"
11+
},
12+
"body": "{Binary}"
13+
}
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"onPremiseSensorName": "mySensor",
6+
"body": {
7+
"applianceId": "3214-528AV23-D121-D3-E1"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {
13+
"content-type": "application/zip"
14+
},
15+
"body": "{Binary}"
16+
}
17+
}
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"onPremiseSensorName": "mySensor"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"name": "mySensor",
11+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/onPremiseSensors/mySensor",
12+
"type": "Microsoft.IoTSecurity/onPremiseSensors",
13+
"properties": {},
14+
"systemData": {
15+
"createdBy": "string",
16+
"createdByType": "User",
17+
"createdAt": "2020-04-27T21:53:29.0928001Z",
18+
"lastModifiedBy": "string",
19+
"lastModifiedByType": "User",
20+
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
21+
}
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"value": [
10+
{
11+
"name": "mySensor",
12+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor",
13+
"type": "Microsoft.IoTSecurity/onPremiseSensors",
14+
"properties": {},
15+
"systemData": {
16+
"createdBy": "string",
17+
"createdByType": "User",
18+
"createdAt": "2020-04-27T21:53:29.0928001Z",
19+
"lastModifiedBy": "string",
20+
"lastModifiedByType": "User",
21+
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
22+
}
23+
},
24+
{
25+
"name": "otherSensor",
26+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/otherSensor",
27+
"type": "Microsoft.IoTSecurity/onPremiseSensors",
28+
"properties": {},
29+
"systemData": {
30+
"createdBy": "string",
31+
"createdByType": "User",
32+
"createdAt": "2020-04-27T21:53:29.0928001Z",
33+
"lastModifiedBy": "string",
34+
"lastModifiedByType": "User",
35+
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
36+
}
37+
}
38+
]
39+
}
40+
}
41+
}
42+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
5+
"onPremiseSensorName": "mySensor"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"name": "mySensor",
11+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor",
12+
"type": "Microsoft.IoTSecurity/onPremiseSensors",
13+
"properties": {},
14+
"systemData": {
15+
"createdBy": "string",
16+
"createdByType": "User",
17+
"createdAt": "2020-04-27T21:53:29.0928001Z",
18+
"lastModifiedBy": "string",
19+
"lastModifiedByType": "User",
20+
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
21+
}
22+
}
23+
},
24+
"201": {
25+
"body": {
26+
"name": "mySensor",
27+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor",
28+
"type": "Microsoft.IoTSecurity/onPremiseSensors",
29+
"properties": {},
30+
"systemData": {
31+
"createdBy": "string",
32+
"createdByType": "User",
33+
"createdAt": "2020-04-27T21:53:29.0928001Z",
34+
"lastModifiedBy": "string",
35+
"lastModifiedByType": "User",
36+
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
37+
}
38+
}
39+
}
40+
}
41+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
5+
"sensorName": "mySensor"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
5+
"sensorName": "mySensor"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"content-type": "application/zip"
11+
},
12+
"body": "{Binary}"
13+
}
14+
}
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
5+
"sensorName": "mySensor",
6+
"body": {
7+
"applianceId": "3214-528AV23-D121-D3-E1"
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"headers": {
13+
"content-type": "application/zip"
14+
},
15+
"body": "{Binary}"
16+
}
17+
}
18+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"parameters": {
3+
"api-version": "2021-02-01-preview",
4+
"scope": "subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub",
5+
"sensorName": "mySensor"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"name": "mySensor",
11+
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.IoTSecurity/sensors/mySensor",
12+
"type": "Microsoft.IoTSecurity/sensors",
13+
"properties": {
14+
"connectivityTime": "2020-11-17T12:31:25Z",
15+
"dynamicLearning": true,
16+
"learningMode": true,
17+
"sensorStatus": "Ok",
18+
"sensorVersion": "2020.11.01.1643",
19+
"tiAutomaticUpdates": true,
20+
"tiStatus": "Ok",
21+
"tiVersion": "2020-11-17T12:31:25Z",
22+
"zone": "Zone Name"
23+
},
24+
"systemData": {
25+
"createdBy": "string",
26+
"createdByType": "User",
27+
"createdAt": "2020-04-27T21:53:29.0928001Z",
28+
"lastModifiedBy": "string",
29+
"lastModifiedByType": "User",
30+
"lastModifiedAt": "2020-04-27T21:53:29.0928001Z"
31+
}
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)