Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.Security to add version …
Browse files Browse the repository at this point in the history
…preview/2020-08-06-preview (Azure#10773)

* Add onPremiseSensors

* Suppress

* Specify file download schema

* Fix validaiton

Co-authored-by: Liran Chen <lirche@microsoft.com>
  • Loading branch information
2 people authored and nitegupt committed Sep 25, 2020
1 parent 982325d commit eeef118
Show file tree
Hide file tree
Showing 10 changed files with 403 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
"iotSensorName": "mySensor"
},
"responses": {
"200": {}
"200": {
"headers": {
"content-type": "application/zip"
},
"body": "{Binary}"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"name": "otherSensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/otherSensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg/providers/Microsoft.Devices/IotHubs/myHub/providers/Microsoft.Security/iotSensors/otherSensor",
"type": "Microsoft.Security/iotSensors",
"properties": {}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseIotSensorName": "mySensor"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseIotSensorName": "mySensor"
},
"responses": {
"200": {
"headers": {
"content-type": "application/zip"
},
"body": "{Binary}"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseIotSensorName": "mySensor"
},
"responses": {
"200": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/onPremiseIotSensors/mySensor",
"type": "Microsoft.Security/onPremiseIotSensors",
"properties": {}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/mySensor",
"type": "Microsoft.Security/onPremiseIotSensors",
"properties": {}
},
{
"name": "otherSensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/otherSensor",
"type": "Microsoft.Security/onPremiseIotSensors",
"properties": {}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2020-08-06-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"onPremiseIotSensorName": "mySensor"
},
"responses": {
"200": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/mySensor",
"type": "Microsoft.Security/onPremiseIotSensors",
"properties": {}
}
},
"201": {
"body": {
"name": "mySensor",
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/iotSensors/mySensor",
"type": "Microsoft.Security/onPremiseIotSensors",
"properties": {}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@
],
"operationId": "IotSensors_DownloadActivation",
"description": "Download sensor activation file",
"produces": [
"application/zip"
],
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
Expand All @@ -214,7 +217,11 @@
],
"responses": {
"200": {
"description": "Downloaded activation file"
"description": "Downloaded activation file",
"schema": {
"type": "object",
"format": "file"
}
},
"default": {
"description": "Error response describing why the operation failed.",
Expand Down Expand Up @@ -269,7 +276,7 @@
"in": "path",
"required": true,
"type": "string",
"description": "Scope of the query, can be subscription (/subscriptions/326b1ffa-8ac7-4034-8437-69bef733dede) or IoT Hub (/providers/Microsoft.Devices/iotHubs/myHub)",
"description": "Scope of the query (IoT Hub, /providers/Microsoft.Devices/iotHubs/myHub)",
"x-ms-parameter-location": "method",
"x-ms-skip-url-encoding": true
},
Expand Down
Loading

0 comments on commit eeef118

Please sign in to comment.