Skip to content

Commit

Permalink
Internal Network resource - all properties are top level (PrivateEndp…
Browse files Browse the repository at this point in the history
…ointConnectionProxy) (#16628)

* Removed property bags from NRP proxy definition

* Added top level suppression

* Added provisioning state because of RPaaS validation

* Another try at supressions

* square #1

* square #0

* another try
  • Loading branch information
darkoa-msft authored Nov 2, 2021
1 parent c4838f2 commit ab4df5f
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 113 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1532,22 +1532,16 @@
"allOf": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource"
}
],
"properties": {
"properties": {
"description": "Private endpoint connection proxy object properties.",
"x-ms-client-flatten": true,
},
{
"$ref": "#/definitions/PrivateEndpointConnectionProxyProperties"
}
},
"required": [
"properties"
]
},
"PrivateEndpointConnectionProxyProperties": {
"description": "Private endpoint connection proxy object properties.",
"type": "object",
"x-ms-client-flatten": true,
"properties": {
"eTag": {
"description": "ETag from NRP.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,37 @@
"privateEndpointConnectionProxyId": "peexample01",
"api-version": "2020-03-01-preview",
"privateEndpointConnectionProxy": {
"properties": {
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{privateEndpointConnectionProxyId}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": []
}
]
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnectionProxies/peexample01",
"name": "peexample01",
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{privateEndpointConnectionProxyId}",
"name": "{plsConnectionName}",
"groupIds": [
"DeviceUpdate"
],
Expand All @@ -21,45 +46,16 @@
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": []
"groupConnectivityInformation": [
{
"groupId": "DeviceUpdate",
"memberName": "adu"
}
]
}
]
}
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnectionProxies/peexample01",
"name": "peexample01",
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
"properties": {
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": [
{
"groupId": "DeviceUpdate",
"memberName": "adu"
}
]
}
]
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,28 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnectionProxies/peexample01",
"name": "peexample01",
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
"properties": {
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": [
{
"groupId": "DeviceUpdate",
"memberName": "adu"
}
]
}
]
}
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": [
{
"groupId": "DeviceUpdate",
"memberName": "adu"
}
]
}
]
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,28 @@
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DeviceUpdate/accounts/contoso/privateEndpointConnectionProxies/peexample01",
"name": "peexample01",
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
"properties": {
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": [
{
"groupId": "DeviceUpdate",
"memberName": "adu"
}
]
}
]
}
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": [
{
"groupId": "DeviceUpdate",
"memberName": "adu"
}
]
}
]
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,23 @@
"privateEndpointConnectionProxyId": "peexample01",
"api-version": "2020-03-01-preview",
"privateEndpointConnectionProxy": {
"properties": {
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{privateEndpointConnectionProxyId}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": []
}
]
}
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"manualPrivateLinkServiceConnections": [
{
"name": "{privateEndpointConnectionProxyId}",
"groupIds": [
"DeviceUpdate"
],
"requestMessage": "Please approve my connection, thanks."
}
],
"privateLinkServiceProxies": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}/privateLinkServiceProxies/{privateEndpointConnectionProxyId}",
"groupConnectivityInformation": []
}
]
}
}
},
Expand Down
4 changes: 4 additions & 0 deletions specification/deviceupdate/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ directive:
where: $.definitions.Identity.properties.type
from: deviceupdate.json
reason: Managed Identity type can be case in-sensitive
- suppress: BodyTopLevelProperties
from: deviceupdate.json
where: $.definitions.PrivateEndpointConnectionProxy
reason: Internal NRP resource, all properties are top level properties
```

---
Expand Down

0 comments on commit ab4df5f

Please sign in to comment.