-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.DeviceUpdate to add vers…
…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
1 parent
97aa9fa
commit af4929a
Showing
15 changed files
with
1,280 additions
and
0 deletions.
There are no files selected for viewing
860 changes: 860 additions & 0 deletions
860
...date/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
.../Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
...ger/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
...er/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
.../Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...icrosoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Create.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...icrosoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Delete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...r/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...t.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_ListByAccount.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...icrosoft.DeviceUpdate/preview/2020-03-01-preview/examples/Instances/Instances_Update.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
15
specification/deviceupdate/resource-manager/readme.csharp.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
``` |
Oops, something went wrong.