Skip to content

Commit 3d1ae07

Browse files
authored
[Microsoft.DeviceUpdate] (Internal only) Added Private Endpoint Proxy Private Endpoint Update (#18281)
* (Internal only) Added Private Endpoint Proxy Private Endpoint Update * The existing resource also needs a change * Renamed example * Fixing more copy and paste errors * Removed read only, formatted new file * Move provisioning state inside proxy properties * Revert "Move provisioning state inside proxy properties" This reverts commit 414d0c6. * Moved proxy provisioning state into properties, try #2 * Moved proxy provisioning state into properties, try number 3 * Moved proxy provisioning state into properties, try number 4 * Moved Proxy provisioningState to top level, removed property bag * Fixed a naming error * Linter fixes * Removed flatten in Proxy properties * Reverted all provisioningState changes * Swapped properties to match the old swagger
1 parent 2c68b6f commit 3d1ae07

File tree

6 files changed

+126
-6
lines changed

6 files changed

+126
-6
lines changed

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

Lines changed: 88 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,55 @@
10301030
"deprecated": false
10311031
}
10321032
},
1033+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}/updatePrivateEndpointProperties": {
1034+
"post": {
1035+
"description": "(INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object.",
1036+
"operationId": "PrivateEndpointConnectionProxies_UpdatePrivateEndpointProperties",
1037+
"parameters": [
1038+
{
1039+
"$ref": "#/parameters/ApiVersionParameter"
1040+
},
1041+
{
1042+
"$ref": "#/parameters/SubscriptionIdParameter"
1043+
},
1044+
{
1045+
"$ref": "#/parameters/ResourceGroupNameParameter"
1046+
},
1047+
{
1048+
"$ref": "#/parameters/AccountNameParameter"
1049+
},
1050+
{
1051+
"$ref": "#/parameters/PrivateEndpointConnectionProxyIdParameter"
1052+
},
1053+
{
1054+
"name": "privateEndpointUpdate",
1055+
"in": "body",
1056+
"description": "The parameters for updating a private endpoint connection proxy.",
1057+
"required": true,
1058+
"schema": {
1059+
"$ref": "#/definitions/PrivateEndpointUpdate"
1060+
}
1061+
}
1062+
],
1063+
"responses": {
1064+
"200": {
1065+
"description": "Update private endpoint in private endpoint connection proxy empty response."
1066+
},
1067+
"default": {
1068+
"description": "Error response describing the reason for operation failure.",
1069+
"schema": {
1070+
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
1071+
}
1072+
}
1073+
},
1074+
"x-ms-examples": {
1075+
"PrivateEndpointConnectionProxyPrivateEndpointUpdate": {
1076+
"$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json"
1077+
}
1078+
},
1079+
"deprecated": false
1080+
}
1081+
},
10331082
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}": {
10341083
"get": {
10351084
"tags": [
@@ -1582,10 +1631,21 @@
15821631
"description": "Remote endpoint resource ID.",
15831632
"type": "string"
15841633
},
1634+
"location": {
1635+
"description": "ARM location of the remote private endpoint.",
1636+
"type": "string"
1637+
},
1638+
"immutableSubscriptionId": {
1639+
"description": "Original subscription ID needed by Microsoft.Network.",
1640+
"type": "string"
1641+
},
1642+
"immutableResourceId": {
1643+
"description": "Original resource ID needed by Microsoft.Network.",
1644+
"type": "string"
1645+
},
15851646
"vnetTrafficTag": {
15861647
"description": "Virtual network traffic tag.",
1587-
"type": "string",
1588-
"readOnly": true
1648+
"type": "string"
15891649
},
15901650
"manualPrivateLinkServiceConnections": {
15911651
"description": "List of private link service connections that need manual approval.",
@@ -1617,6 +1677,32 @@
16171677
}
16181678
}
16191679
},
1680+
"PrivateEndpointUpdate": {
1681+
"description": "Private endpoint update details.",
1682+
"type": "object",
1683+
"properties": {
1684+
"id": {
1685+
"description": "Remote endpoint resource ID.",
1686+
"type": "string"
1687+
},
1688+
"location": {
1689+
"description": "ARM location of the remote private endpoint.",
1690+
"type": "string"
1691+
},
1692+
"immutableSubscriptionId": {
1693+
"description": "Original subscription ID needed by Microsoft.Network.",
1694+
"type": "string"
1695+
},
1696+
"immutableResourceId": {
1697+
"description": "Original resource ID needed by Microsoft.Network.",
1698+
"type": "string"
1699+
},
1700+
"vnetTrafficTag": {
1701+
"description": "Virtual network traffic tag.",
1702+
"type": "string"
1703+
}
1704+
}
1705+
},
16201706
"PrivateLinkServiceConnection": {
16211707
"description": "Private link service connection details.",
16221708
"type": "object",

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
"api-version": "2020-03-01-preview",
88
"privateEndpointConnectionProxy": {
99
"remotePrivateEndpoint": {
10-
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
10+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
11+
"location": "westus2",
12+
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
13+
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
1114
"manualPrivateLinkServiceConnections": [
1215
{
1316
"name": "{privateEndpointConnectionProxyId}",
@@ -33,7 +36,10 @@
3336
"name": "peexample01",
3437
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
3538
"remotePrivateEndpoint": {
36-
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
39+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
40+
"location": "westus2",
41+
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
42+
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
3743
"manualPrivateLinkServiceConnections": [
3844
{
3945
"name": "{plsConnectionName}",

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"name": "peexample01",
1414
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
1515
"remotePrivateEndpoint": {
16-
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
16+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
17+
"location": "westus2",
18+
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
19+
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
1720
"manualPrivateLinkServiceConnections": [
1821
{
1922
"name": "{plsConnectionName}",

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
"name": "peexample01",
1515
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
1616
"remotePrivateEndpoint": {
17-
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
17+
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
18+
"location": "westus2",
19+
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
20+
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
1821
"manualPrivateLinkServiceConnections": [
1922
{
2023
"name": "{plsConnectionName}",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "00000000-0000-0000-0000-000000000000",
4+
"resourceGroupName": "test-rg",
5+
"accountName": "contoso",
6+
"privateEndpointConnectionProxyId": "peexample01",
7+
"api-version": "2020-03-01-preview",
8+
"privateEndpointUpdate": {
9+
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
10+
"location": "westus2",
11+
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
12+
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
13+
"vnetTrafficTag": "12345678"
14+
}
15+
},
16+
"responses": {
17+
"200": {}
18+
}
19+
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"privateEndpointConnectionProxy": {
99
"remotePrivateEndpoint": {
1010
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
11+
"location": "westus2",
12+
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
13+
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
1114
"manualPrivateLinkServiceConnections": [
1215
{
1316
"name": "{privateEndpointConnectionProxyId}",

0 commit comments

Comments
 (0)