Skip to content

Commit ea78274

Browse files
darkoa-msftMilan Zolota
authored andcommitted
[Device Update for IoT Hub] Added Private Endpoint Connection API and model definitions (Azure#16085)
* Added Private Endpoint Connection API and model definitions, fixed minor errors * Referenced common private link types * Reference list types do not have nextLink property * Fixed copy&paste description error * Trying to suppress an error * Change common types version to v3 * Suppression not working * Extended common type in order to add a required property
1 parent cb7d642 commit ea78274

File tree

8 files changed

+563
-29
lines changed

8 files changed

+563
-29
lines changed

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/deviceupdate.json

Lines changed: 391 additions & 29 deletions
Large diffs are not rendered by default.

specification/deviceupdate/resource-manager/Microsoft.DeviceUpdate/preview/2020-03-01-preview/examples/Accounts/Accounts_Update.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
"properties": {
4141
"provisioningState": "Created",
4242
"hostName": "contoso.api.adu.microsoft.com"
43+
},
44+
"tags": {
45+
"tagKey": "tagValue"
4346
}
4447
}
4548
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"privateEndpointConnectionName": "peexample01",
7+
"api-version": "2020-03-01-preview",
8+
"privateEndpointConnection": {
9+
"properties": {
10+
"privateLinkServiceConnectionState": {
11+
"status": "Approved",
12+
"description": "Auto-Approved"
13+
}
14+
}
15+
}
16+
},
17+
"responses": {
18+
"201": {
19+
"body": {
20+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01",
21+
"name": "peexample01",
22+
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections",
23+
"properties": {
24+
"provisioningState": "Succeeded",
25+
"privateEndpoint": {
26+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01"
27+
},
28+
"privateLinkServiceConnectionState": {
29+
"status": "Approved",
30+
"description": "Auto-Approved",
31+
"actionsRequired": "None"
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"privateEndpointConnectionName": "peexample01",
7+
"api-version": "2020-03-01-preview"
8+
},
9+
"responses": {
10+
"200": {},
11+
"202": {},
12+
"204": {}
13+
}
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"privateEndpointConnectionName": "peexample01",
7+
"api-version": "2020-03-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01",
13+
"name": "peexample01",
14+
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections",
15+
"properties": {
16+
"provisioningState": "Succeeded",
17+
"privateEndpoint": {
18+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01"
19+
},
20+
"privateLinkServiceConnectionState": {
21+
"status": "Approved",
22+
"description": "Auto-Approved",
23+
"actionsRequired": "None"
24+
}
25+
}
26+
}
27+
}
28+
}
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"api-version": "2020-03-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnections/peexample01",
14+
"name": "peexample01",
15+
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections",
16+
"properties": {
17+
"provisioningState": "Succeeded",
18+
"privateEndpoint": {
19+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/peexample01"
20+
},
21+
"privateLinkServiceConnectionState": {
22+
"status": "Approved",
23+
"description": "Auto-Approved",
24+
"actionsRequired": "None"
25+
}
26+
}
27+
}
28+
]
29+
}
30+
}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"groupId": "adu",
7+
"api-version": "2020-03-01-preview"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateLinkResources/adu",
13+
"name": "adu",
14+
"type": "Microsoft.DeviceUpdate/accounts/privateLinkResources",
15+
"properties": {
16+
"groupId": "adu",
17+
"requiredMembers": [
18+
"adu"
19+
],
20+
"requiredZoneNames": [
21+
"privatelink.adu.microsoft.com"
22+
]
23+
}
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"api-version": "2020-03-01-preview"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateLinkResources/adu",
14+
"name": "adu",
15+
"type": "Microsoft.DeviceUpdate/accounts/privateLinkResources",
16+
"properties": {
17+
"groupId": "adu",
18+
"requiredMembers": [
19+
"adu"
20+
],
21+
"requiredZoneNames": [
22+
"privatelink.adu.microsoft.com"
23+
]
24+
}
25+
}
26+
]
27+
}
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)