Skip to content

Commit

Permalink
[Microsoft.DeviceUpdate] (Internal only) Added Private Endpoint Proxy…
Browse files Browse the repository at this point in the history
… Private Endpoint Update (Azure#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
  • Loading branch information
darkoa-msft authored Mar 19, 2022
1 parent 2c68b6f commit 3d1ae07
Show file tree
Hide file tree
Showing 6 changed files with 126 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,55 @@
"deprecated": false
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}/updatePrivateEndpointProperties": {
"post": {
"description": "(INTERNAL - DO NOT USE) Updates a private endpoint inside the private endpoint connection proxy object.",
"operationId": "PrivateEndpointConnectionProxies_UpdatePrivateEndpointProperties",
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/AccountNameParameter"
},
{
"$ref": "#/parameters/PrivateEndpointConnectionProxyIdParameter"
},
{
"name": "privateEndpointUpdate",
"in": "body",
"description": "The parameters for updating a private endpoint connection proxy.",
"required": true,
"schema": {
"$ref": "#/definitions/PrivateEndpointUpdate"
}
}
],
"responses": {
"200": {
"description": "Update private endpoint in private endpoint connection proxy empty response."
},
"default": {
"description": "Error response describing the reason for operation failure.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse"
}
}
},
"x-ms-examples": {
"PrivateEndpointConnectionProxyPrivateEndpointUpdate": {
"$ref": "./examples/PrivateEndpointConnectionProxies/PrivateEndpointConnectionProxy_PrivateEndpointUpdate.json"
}
},
"deprecated": false
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}": {
"get": {
"tags": [
Expand Down Expand Up @@ -1582,10 +1631,21 @@
"description": "Remote endpoint resource ID.",
"type": "string"
},
"location": {
"description": "ARM location of the remote private endpoint.",
"type": "string"
},
"immutableSubscriptionId": {
"description": "Original subscription ID needed by Microsoft.Network.",
"type": "string"
},
"immutableResourceId": {
"description": "Original resource ID needed by Microsoft.Network.",
"type": "string"
},
"vnetTrafficTag": {
"description": "Virtual network traffic tag.",
"type": "string",
"readOnly": true
"type": "string"
},
"manualPrivateLinkServiceConnections": {
"description": "List of private link service connections that need manual approval.",
Expand Down Expand Up @@ -1617,6 +1677,32 @@
}
}
},
"PrivateEndpointUpdate": {
"description": "Private endpoint update details.",
"type": "object",
"properties": {
"id": {
"description": "Remote endpoint resource ID.",
"type": "string"
},
"location": {
"description": "ARM location of the remote private endpoint.",
"type": "string"
},
"immutableSubscriptionId": {
"description": "Original subscription ID needed by Microsoft.Network.",
"type": "string"
},
"immutableResourceId": {
"description": "Original resource ID needed by Microsoft.Network.",
"type": "string"
},
"vnetTrafficTag": {
"description": "Virtual network traffic tag.",
"type": "string"
}
}
},
"PrivateLinkServiceConnection": {
"description": "Private link service connection details.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"api-version": "2020-03-01-preview",
"privateEndpointConnectionProxy": {
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"location": "westus2",
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"manualPrivateLinkServiceConnections": [
{
"name": "{privateEndpointConnectionProxyId}",
Expand All @@ -33,7 +36,10 @@
"name": "peexample01",
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"location": "westus2",
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
"name": "peexample01",
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"location": "westus2",
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
"name": "peexample01",
"type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnectionProxies",
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"location": "westus2",
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"manualPrivateLinkServiceConnections": [
{
"name": "{plsConnectionName}",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "test-rg",
"accountName": "contoso",
"privateEndpointConnectionProxyId": "peexample01",
"api-version": "2020-03-01-preview",
"privateEndpointUpdate": {
"id": "/subscriptions/11111111-1111-1111-1111-111111111111/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"location": "westus2",
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"vnetTrafficTag": "12345678"
}
},
"responses": {
"200": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"privateEndpointConnectionProxy": {
"remotePrivateEndpoint": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{privateEndpointConnectionProxyId}",
"location": "westus2",
"immutableSubscriptionId": "00000000-0000-0000-0000-000000000000",
"immutableResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.Network/privateEndpoints/{peName}",
"manualPrivateLinkServiceConnections": [
{
"name": "{privateEndpointConnectionProxyId}",
Expand Down

0 comments on commit 3d1ae07

Please sign in to comment.