Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sites, sensors and onPremiseSensors resources #12991

Merged
merged 37 commits into from
Mar 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
49836fa
Add Microsoft.IoTSecurity provider
Jan 26, 2021
0d17d01
Run prettier
Jan 26, 2021
a87dc63
Add MD
Jan 26, 2021
44556bf
rename files
Jan 26, 2021
cdff406
update MD
Jan 26, 2021
31bead3
resolve the Avocado
Jan 26, 2021
049b6f9
Remove unused files
Jan 26, 2021
240f8ed
Add operations API
Jan 26, 2021
19a3701
update operations.json
Jan 26, 2021
23e5a54
update markdown
Jan 26, 2021
0d29193
remove dot
Jan 26, 2021
dadf855
re-use types
Jan 26, 2021
2532e45
remove comma
Jan 26, 2021
72e098a
Remove duplicated common types
Jan 27, 2021
238ea40
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
Jan 27, 2021
a9a70e8
Use ProxyResource
Jan 27, 2021
85bbd5b
Remove IoT prefix
Jan 27, 2021
ae01e60
Add example
Jan 27, 2021
5fe4642
undo changes
Jan 27, 2021
d076352
Run prettier
Jan 27, 2021
1f87e71
Use capital letter
Jan 27, 2021
47dfed4
run prettier
Jan 27, 2021
0222843
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
Feb 15, 2021
d8e7c3e
Add sites, sensors and onPremiseSensors resources
Feb 15, 2021
cc77e72
update markdowns
Feb 15, 2021
4e650b0
run prettier
Feb 15, 2021
c269c41
Fix broken parameter
Feb 15, 2021
5d0c82c
Re-trigger Validations
Feb 15, 2021
7c406da
Add systemData
Feb 18, 2021
df764d3
Run prettier
Feb 18, 2021
1111e60
add systemData
Feb 18, 2021
6edbe0f
Run prettier
Feb 18, 2021
8b5c095
Align changes
Feb 21, 2021
e899563
Undo Microsoft.Security changes
Feb 21, 2021
724e984
Add systemData to example
Feb 22, 2021
9a24d03
Fix PR comments
Feb 28, 2021
c5f97ac
Update example
Feb 28, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc24",
"onPremiseSensorName": "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",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseSensorName": "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",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseSensorName": "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,25 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseSensorName": "mySensor"
},
"responses": {
"200": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/onPremiseSensors/mySensor",
"type": "Microsoft.IoTSecurity/onPremiseSensors",
"properties": {},
"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,42 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor",
"type": "Microsoft.IoTSecurity/onPremiseSensors",
"properties": {},
"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/providers/Microsoft.IoTSecurity/sensors/otherSensor",
"type": "Microsoft.IoTSecurity/onPremiseSensors",
"properties": {},
"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,41 @@
{
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseSensorName": "mySensor"
},
"responses": {
"200": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor",
"type": "Microsoft.IoTSecurity/onPremiseSensors",
"properties": {},
"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": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.IoTSecurity/sensors/mySensor",
"type": "Microsoft.IoTSecurity/onPremiseSensors",
"properties": {},
"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,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,35 @@
{
"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"
},
"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"
},
"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"
},
"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"
},
"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,59 @@
{
"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"
}
}
},
"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"
}
}
},
"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"
},
"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": {}
}
}
Loading