Skip to content

Commit

Permalink
[Microsoft.IoTCentral/iotApps] Removal of legacy S1 SKU, S360 Fixes, …
Browse files Browse the repository at this point in the history
…newer RP API version 2021-06-01 (#14311)

* Adds base for updating Microsoft.IoTCentral from version stable/2018-09-01 to version 2021-06-01

* Updates readme

* Updates API version in new specs and examples

* remove legacy sku S1

* update template in example to use M3 template name

* add suppress for R4009 and R3018

* add state

* update

* should be read only

* update example

* Update iotcentral.json

temporary changing this for further testing in canary.

* removal of f1 and deleted state
  • Loading branch information
poanchen authored Sep 14, 2021
1 parent 9572eff commit 0d3b1a8
Show file tree
Hide file tree
Showing 12 changed files with 2,200 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-06-01",
"operationInputs": {
"name": "myiotcentralapp",
"type": "IoTApps"
}
},
"responses": {
"200": {
"description": "Returns information about resource name availability",
"headers": {
"code": "200"
},
"body": {
"nameAvailable": true
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-06-01",
"operationInputs": {
"name": "myiotcentralapp",
"type": "IoTApps"
}
},
"responses": {
"200": {
"description": "Returns information about resource subdomain availability",
"headers": {
"code": "200"
},
"body": {
"nameAvailable": true
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"resourceName": "myIoTCentralApp",
"api-version": "2021-06-01",
"App": {
"location": "westus",
"sku": {
"name": "ST2"
},
"properties": {
"displayName": "My IoT Central App",
"subdomain": "my-iot-central-app",
"template": "iotc-pnp-preview@1.0.0"
}
}
},
"responses": {
"200": {
"header": {
"code": "200",
"message": "OK"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"name": "myIoTCentralApp",
"type": "Microsoft.IoTCentral/IoTApps",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App 2",
"subdomain": "my-iot-central-app-2",
"template": "iotc-pnp-preview@1.0.0",
"state": "created"
},
"sku": {
"name": "ST2"
}
}
},
"201": {
"headers": {
"code": "201",
"message": "Created",
"target": "ResourceHandler.ExecutePutRequest"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp",
"name": "myIoTCentralApp",
"type": "Microsoft.IoTCentral/IoTApps",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
"subdomain": "my-iot-central-app",
"template": "iotc-pnp-preview@1.0.0",
"state": "created"
},
"sku": {
"name": "ST2"
}
}
},
"202": {},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"resourceName": "myIoTCentralApp",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"header": {
"code": "200",
"message": "OK",
"target": "ResourceHandler.ExecuteDeleteRequest"
}
},
"202": {},
"204": {},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {
"message": "Created",
"code": "200"
},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "resRg",
"resourceName": "myIoTCentralApp",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"description": "Returns the application details",
"headers": {
"code": "200"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
"subdomain": "my-iot-central-app",
"template": "iotc-pnp-preview@1.0.0",
"state": "created"
},
"sku": {
"name": "F1"
}
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-06-01",
"resourceGroupName": "resRg"
},
"responses": {
"200": {
"headers": {
"code": "200"
},
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
"subdomain": "my-iot-central-app",
"template": "iotc-pnp-preview@1.0.0",
"state": "created"
},
"sku": {
"name": "F1"
}
}
],
"nextLink": null
}
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"headers": {
"code": "200"
},
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/iotApps/myIoTCentralApp",
"location": "westus",
"type": "Microsoft.IoTCentral/IoTApps",
"name": "myIoTCentralApp",
"tags": {
"key": "value"
},
"properties": {
"applicationId": "6ebd8fd3-6e34-419e-908f-9be61ec6f6d6",
"displayName": "My IoT Central App",
"subdomain": "my-iot-central-app",
"template": "iotc-pnp-preview@1.0.0",
"state": "created"
},
"sku": {
"name": "F1"
}
}
],
"nextLink": null
},
"default": {
"description": "Error message returned for an unexpected response",
"headers": {},
"body": {
"error": {
"code": "Error code",
"message": "Error message",
"target": "Error target"
}
}
}
}
}
}
Loading

0 comments on commit 0d3b1a8

Please sign in to comment.