Skip to content

Commit eea88a2

Browse files
Aastha20Aastha Singh
authored andcommitted
patch api changes for swagger (#24147)
Co-authored-by: Aastha Singh <[email protected]>
1 parent 49755fb commit eea88a2

File tree

3 files changed

+87
-1
lines changed

3 files changed

+87
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"title": "Patch Network Security Perimeter",
3+
"parameters": {
4+
"api-version": "2021-02-01-preview",
5+
"subscriptionId": "subId",
6+
"resourceGroupName": "rg1",
7+
"networkSecurityPerimeterName": "nsp1",
8+
"parameters": {
9+
"tags": {
10+
"description": "nsp1"
11+
}
12+
}
13+
},
14+
"responses": {
15+
"200": {
16+
"body": {
17+
"name": "TestNetworkSecurityPerimeter",
18+
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/TestNetworkSecurityPerimeter",
19+
"type": "Microsoft.Network/networkSecurityPerimeters",
20+
"tags": {
21+
"description": "nsp1"
22+
},
23+
"location": "East US 2 EUAP",
24+
"properties": {
25+
"perimeterGuid": "guid",
26+
"provisioningState": "Succeeded"
27+
}
28+
}
29+
}
30+
}
31+
}

specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/examples/NspAccessRuleReconcile.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"resourceGroupName": "rg1",
77
"networkSecurityPerimeterName": "nsp1",
88
"profileName": "profile1",
9-
"accessRuleName": "accessRule1",
9+
"accessRuleName": "accessRuleName1",
1010
"parameters": {
1111
"properties": {}
1212
}

specification/network/resource-manager/Microsoft.Network/preview/2021-02-01-preview/networkSecurityPerimeter.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,43 @@
143143
"$ref": "./examples/NetworkSecurityPerimeterDelete.json"
144144
}
145145
}
146+
},
147+
"patch": {
148+
"tags": [
149+
"NetworkSecurityPerimeters"
150+
],
151+
"operationId": "NetworkSecurityPerimeters_Patch",
152+
"description": "Patch Tags for a Network Security Perimeter.",
153+
"parameters": [
154+
{
155+
"name": "parameters",
156+
"in": "body",
157+
"required": true,
158+
"schema": {
159+
"$ref": "#/definitions/UpdateTagsRequest"
160+
},
161+
"description": "Parameter supplied to the network security perimeter."
162+
}
163+
],
164+
"responses": {
165+
"200": {
166+
"description": "Request is successful. Returns the resulting network security perimeter resource.",
167+
"schema": {
168+
"$ref": "#/definitions/NetworkSecurityPerimeter"
169+
}
170+
},
171+
"default": {
172+
"description": "Error response describing why the operation failed.",
173+
"schema": {
174+
"$ref": "./network.json#/definitions/CloudError"
175+
}
176+
}
177+
},
178+
"x-ms-examples": {
179+
"Patch Network Security Perimeter": {
180+
"$ref": "./examples/NetworkSecurityPerimeterPatch.json"
181+
}
182+
}
146183
}
147184
},
148185
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityPerimeters": {
@@ -1285,6 +1322,24 @@
12851322
},
12861323
"description": "Properties of network security perimeter."
12871324
},
1325+
"UpdateTagsRequest": {
1326+
"type": "object",
1327+
"properties": {
1328+
"id": {
1329+
"readOnly": true,
1330+
"type": "string",
1331+
"description": "Network security perimeter identifier."
1332+
},
1333+
"tags": {
1334+
"type": "object",
1335+
"additionalProperties": {
1336+
"type": "string"
1337+
},
1338+
"description": "List of tags for Network Security Perimeter"
1339+
}
1340+
},
1341+
"description": "Update tags request."
1342+
},
12881343
"NspProfile": {
12891344
"type": "object",
12901345
"properties": {

0 commit comments

Comments
 (0)