Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.DeviceUpdate to add vers…
Browse files Browse the repository at this point in the history
…ion preview/2020-03-01-preview (#13215)

* New Readme Config File

* New Go Language Readme Config File

* New Azure AZ Readme Config File

* New Azure CLI Readme Config File

* New Typescript Language Readme Config File

* New Python Language Readme Config File

* New C# Language Readme Config File

* New AzureResourceSchema Readme Config File

* New Swagger Spec File

* New Swagger Example Spec File

* Release of Device Update for IoT Hub control plane specification.

* Fixing prettier issues.

* Updating control plane swagger

* Update deviceupdate.json

* Update deviceupdate.json

* Update deviceupdate.json

* Update deviceupdate.json

* add the multiapi section

* Update Accounts_Delete.json

* Update Instances_Delete.json

Co-authored-by: David Pokluda <david.pokluda@microsoft.com>
Co-authored-by: Alexander Batishchev <abatishchev@gmail.com>
Co-authored-by: ArcturusZhang <dapzhang@microsoft.com>
  • Loading branch information
4 people authored Mar 2, 2021
1 parent 97aa9fa commit af4929a
Show file tree
Hide file tree
Showing 15 changed files with 1,280 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"api-version": "2020-03-01-preview",
"Account": {
"location": "West US 2",
"properties": {}
}
},
"responses": {
"201": {
"body": {
"name": "contoso",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Accepted",
"hostName": "contoso.api.adu.microsoft.com"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {
"body": {
"name": "contoso",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Succeeded",
"hostName": "contoso.api.adu.microsoft.com"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {
"body": {
"nextLink": "string",
"value": [
{
"name": "contoso",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Succeeded",
"hostName": "contoso.api.adu.microsoft.com"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"api-version": "2020-03-01-preview",
"accountUpdatePayload": {
"tags": {
"tagKey": "tagValue"
}
}
},
"responses": {
"200": {
"body": {
"name": "contoso",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso",
"type": "Microsoft.DeviceUpdate/accounts",
"properties": {
"provisioningState": "Succeeded",
"hostName": "contoso.api.adu.microsoft.com"
},
"tags": {
"tagKey": "tagValue"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"instanceName": "blue",
"api-version": "2020-03-01-preview",
"Instance": {
"location": "West US 2",
"properties": {
"iotHubs": [
{
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub",
"ioTHubConnectionString": "string",
"eventHubConnectionString": "string"
}
]
}
}
},
"responses": {
"201": {
"body": {
"name": "blue",
"location": "West US 2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue",
"type": "Microsoft.DeviceUpdate/accounts/instances",
"properties": {
"provisioningState": "Accepted",
"accountName": "contoso",
"iotHubs": [
{
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"instanceName": "blue",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"instanceName": "blue",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {
"body": {
"name": "blue",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue",
"type": "Microsoft.DeviceUpdate/accounts/instances",
"properties": {
"provisioningState": "Succeeded",
"accountName": "contoso",
"iotHubs": [
{
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"api-version": "2020-03-01-preview"
},
"responses": {
"200": {
"body": {
"nextLink": "string",
"value": [
{
"name": "blue",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue",
"type": "Microsoft.DeviceUpdate/accounts/instances",
"properties": {
"provisioningState": "Succeeded",
"accountName": "contoso",
"iotHubs": [
{
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
}
]
}
},
{
"name": "red",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/red",
"type": "Microsoft.DeviceUpdate/accounts/instances",
"properties": {
"provisioningState": "Succeeded",
"accountName": "contoso",
"iotHubs": [
{
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/red-contoso-hub"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"instanceName": "blue",
"api-version": "2020-03-01-preview",
"tagUpdatePayload": {
"tags": {
"tagKey": "tagValue"
}
}
},
"responses": {
"200": {
"body": {
"name": "blue",
"location": "westus2",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/instances/blue",
"type": "Microsoft.DeviceUpdate/accounts/instances",
"properties": {
"accountName": "contoso",
"iotHubs": [
{
"resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Devices/IotHubs/blue-contoso-hub"
}
]
},
"tags": {
"tagKey": "tagValue"
}
}
}
}
}
15 changes: 15 additions & 0 deletions specification/deviceupdate/resource-manager/readme.csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## C#

These settings apply only when `--csharp` is specified on the command line.
Please also specify `--csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>`.

```yaml $(csharp)
csharp:
azure-arm: true
license-header: MICROSOFT_MIT_NO_VERSION
payload-flattening-threshold: 1
clear-output-folder: true
client-side-validation: false
namespace: Azure.ResourceManager.DeviceUpdate
output-folder: $(csharp-sdks-folder)/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated
```
26 changes: 26 additions & 0 deletions specification/deviceupdate/resource-manager/readme.go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Go

These settings apply only when `--go` is specified on the command line.

```yaml $(go)
go:
license-header: MICROSOFT_MIT_NO_VERSION
clear-output-folder: true
```
### Go multi-api
``` yaml $(go) && $(multiapi)
batch:
- tag: package-2020-03-01-preview
```
### Tag: package-2020-03-01-preview and go
These settings apply only when `--tag=package-2020-03-01-preview --go` is specified on the command line.
Please also specify `--go-sdks-folder=<path to the root directory of your azure-sdk-for-go clone>`.

```yaml $(tag) == 'package-2020-03-01-preview' && $(go)
namespace: deviceupdate
output-folder: $(go-sdk-folder)/services/preview/$(namespace)/mgmt/2020-03-01-preview/$(namespace)
```
Loading

0 comments on commit af4929a

Please sign in to comment.