Skip to content

Commit c8c062b

Browse files
authored
correct recource allocation for pirvate endpoint (#44288)
1 parent d4b1d2c commit c8c062b

2 files changed

Lines changed: 153 additions & 131 deletions

File tree

  • specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb

specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb/preview/2026-01-20-preview/openapi.json

Lines changed: 148 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,154 @@
14301430
"$ref": "./examples/PrivateEndpointConnections_Get.json"
14311431
}
14321432
}
1433+
},
1434+
"patch": {
1435+
"operationId": "HorizonDbPrivateEndpointConnections_Update",
1436+
"tags": [
1437+
"HorizonDbPrivateEndpointConnections"
1438+
],
1439+
"description": "Updates a private endpoint connection.",
1440+
"parameters": [
1441+
{
1442+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
1443+
},
1444+
{
1445+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
1446+
},
1447+
{
1448+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
1449+
},
1450+
{
1451+
"name": "clusterName",
1452+
"in": "path",
1453+
"description": "The name of the HorizonDB cluster.",
1454+
"required": true,
1455+
"type": "string",
1456+
"minLength": 1,
1457+
"maxLength": 63,
1458+
"pattern": "^[a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9]$"
1459+
},
1460+
{
1461+
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/parameters/PrivateEndpointConnectionName"
1462+
},
1463+
{
1464+
"name": "properties",
1465+
"in": "body",
1466+
"description": "The resource properties to be updated.",
1467+
"required": true,
1468+
"schema": {
1469+
"$ref": "#/definitions/Azure.ResourceManager.PrivateEndpointConnectionUpdate"
1470+
}
1471+
}
1472+
],
1473+
"responses": {
1474+
"200": {
1475+
"description": "Azure operation completed successfully.",
1476+
"schema": {
1477+
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection"
1478+
}
1479+
},
1480+
"202": {
1481+
"description": "Resource update request accepted.",
1482+
"headers": {
1483+
"Location": {
1484+
"type": "string",
1485+
"description": "The Location header contains the URL where the status of the long running operation can be checked."
1486+
},
1487+
"Retry-After": {
1488+
"type": "integer",
1489+
"format": "int32",
1490+
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
1491+
}
1492+
}
1493+
},
1494+
"default": {
1495+
"description": "An unexpected error response.",
1496+
"schema": {
1497+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
1498+
}
1499+
}
1500+
},
1501+
"x-ms-examples": {
1502+
"Approve or reject a private endpoint connection": {
1503+
"$ref": "./examples/PrivateEndpointConnections_Update.json"
1504+
}
1505+
},
1506+
"x-ms-long-running-operation-options": {
1507+
"final-state-via": "location",
1508+
"final-state-schema": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection"
1509+
},
1510+
"x-ms-long-running-operation": true
1511+
},
1512+
"delete": {
1513+
"operationId": "HorizonDbPrivateEndpointConnections_Delete",
1514+
"tags": [
1515+
"HorizonDbPrivateEndpointConnections"
1516+
],
1517+
"description": "Deletes a private endpoint connection.",
1518+
"parameters": [
1519+
{
1520+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
1521+
},
1522+
{
1523+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
1524+
},
1525+
{
1526+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
1527+
},
1528+
{
1529+
"name": "clusterName",
1530+
"in": "path",
1531+
"description": "The name of the HorizonDB cluster.",
1532+
"required": true,
1533+
"type": "string",
1534+
"minLength": 1,
1535+
"maxLength": 63,
1536+
"pattern": "^[a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9]$"
1537+
},
1538+
{
1539+
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/parameters/PrivateEndpointConnectionName"
1540+
}
1541+
],
1542+
"responses": {
1543+
"202": {
1544+
"description": "Resource deletion accepted.",
1545+
"headers": {
1546+
"Azure-AsyncOperation": {
1547+
"type": "string",
1548+
"format": "uri",
1549+
"description": "A link to the status monitor"
1550+
},
1551+
"Location": {
1552+
"type": "string",
1553+
"description": "The Location header contains the URL where the status of the long running operation can be checked."
1554+
},
1555+
"Retry-After": {
1556+
"type": "integer",
1557+
"format": "int32",
1558+
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
1559+
}
1560+
}
1561+
},
1562+
"204": {
1563+
"description": "Resource does not exist."
1564+
},
1565+
"default": {
1566+
"description": "An unexpected error response.",
1567+
"schema": {
1568+
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
1569+
}
1570+
}
1571+
},
1572+
"x-ms-examples": {
1573+
"Delete a private endpoint connection": {
1574+
"$ref": "./examples/PrivateEndpointConnections_Delete.json"
1575+
}
1576+
},
1577+
"x-ms-long-running-operation-options": {
1578+
"final-state-via": "location"
1579+
},
1580+
"x-ms-long-running-operation": true
14331581
}
14341582
},
14351583
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources": {
@@ -1965,136 +2113,6 @@
19652113
"nextLinkName": "nextLink"
19662114
}
19672115
}
1968-
},
1969-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/privateEndpointConnections/{privateEndpointConnectionName}": {
1970-
"patch": {
1971-
"operationId": "HorizonDbPrivateEndpointConnections_Update",
1972-
"tags": [
1973-
"HorizonDbPrivateEndpointConnections"
1974-
],
1975-
"description": "Updates a private endpoint connection.",
1976-
"parameters": [
1977-
{
1978-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
1979-
},
1980-
{
1981-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
1982-
},
1983-
{
1984-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
1985-
},
1986-
{
1987-
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/parameters/PrivateEndpointConnectionName"
1988-
},
1989-
{
1990-
"name": "properties",
1991-
"in": "body",
1992-
"description": "The resource properties to be updated.",
1993-
"required": true,
1994-
"schema": {
1995-
"$ref": "#/definitions/Azure.ResourceManager.PrivateEndpointConnectionUpdate"
1996-
}
1997-
}
1998-
],
1999-
"responses": {
2000-
"200": {
2001-
"description": "Azure operation completed successfully.",
2002-
"schema": {
2003-
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection"
2004-
}
2005-
},
2006-
"202": {
2007-
"description": "Resource update request accepted.",
2008-
"headers": {
2009-
"Location": {
2010-
"type": "string",
2011-
"description": "The Location header contains the URL where the status of the long running operation can be checked."
2012-
},
2013-
"Retry-After": {
2014-
"type": "integer",
2015-
"format": "int32",
2016-
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
2017-
}
2018-
}
2019-
},
2020-
"default": {
2021-
"description": "An unexpected error response.",
2022-
"schema": {
2023-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
2024-
}
2025-
}
2026-
},
2027-
"x-ms-examples": {
2028-
"Approve or reject a private endpoint connection": {
2029-
"$ref": "./examples/PrivateEndpointConnections_Update.json"
2030-
}
2031-
},
2032-
"x-ms-long-running-operation-options": {
2033-
"final-state-via": "location",
2034-
"final-state-schema": "../../../../../../common-types/resource-management/v6/privatelinks.json#/definitions/PrivateEndpointConnection"
2035-
},
2036-
"x-ms-long-running-operation": true
2037-
},
2038-
"delete": {
2039-
"operationId": "HorizonDbPrivateEndpointConnections_Delete",
2040-
"tags": [
2041-
"HorizonDbPrivateEndpointConnections"
2042-
],
2043-
"description": "Deletes a private endpoint connection.",
2044-
"parameters": [
2045-
{
2046-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ApiVersionParameter"
2047-
},
2048-
{
2049-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/SubscriptionIdParameter"
2050-
},
2051-
{
2052-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/parameters/ResourceGroupNameParameter"
2053-
},
2054-
{
2055-
"$ref": "../../../../../../common-types/resource-management/v6/privatelinks.json#/parameters/PrivateEndpointConnectionName"
2056-
}
2057-
],
2058-
"responses": {
2059-
"202": {
2060-
"description": "Resource deletion accepted.",
2061-
"headers": {
2062-
"Azure-AsyncOperation": {
2063-
"type": "string",
2064-
"format": "uri",
2065-
"description": "A link to the status monitor"
2066-
},
2067-
"Location": {
2068-
"type": "string",
2069-
"description": "The Location header contains the URL where the status of the long running operation can be checked."
2070-
},
2071-
"Retry-After": {
2072-
"type": "integer",
2073-
"format": "int32",
2074-
"description": "The Retry-After header can indicate how long the client should wait before polling the operation status."
2075-
}
2076-
}
2077-
},
2078-
"204": {
2079-
"description": "Resource does not exist."
2080-
},
2081-
"default": {
2082-
"description": "An unexpected error response.",
2083-
"schema": {
2084-
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
2085-
}
2086-
}
2087-
},
2088-
"x-ms-examples": {
2089-
"Delete a private endpoint connection": {
2090-
"$ref": "./examples/PrivateEndpointConnections_Delete.json"
2091-
}
2092-
},
2093-
"x-ms-long-running-operation-options": {
2094-
"final-state-via": "location"
2095-
},
2096-
"x-ms-long-running-operation": true
2097-
}
20982116
}
20992117
},
21002118
"definitions": {

specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb/routes.tsp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,14 @@ interface HorizonDbPrivateEndpointConnections {
116116
>;
117117

118118
@doc("Updates a private endpoint connection.")
119-
update is HorizonDbPrivateEndpointOperations.CustomPatchAsync<PrivateEndpointConnectionResource>;
119+
update is HorizonDbPrivateEndpointOperations.CustomPatchAsync<
120+
HorizonDbCluster,
121+
PrivateEndpointConnectionResource
122+
>;
120123

121124
@doc("Deletes a private endpoint connection.")
122125
delete is HorizonDbPrivateEndpointOperations.DeleteAsync<
126+
HorizonDbCluster,
123127
PrivateEndpointConnectionResource,
124128
Response =
125129
| ArmDeleteAcceptedLroResponse<LroHeaders = ArmCombinedLroHeaders &

0 commit comments

Comments
 (0)