Skip to content

Commit

Permalink
patch api changes for swagger (#24147)
Browse files Browse the repository at this point in the history
Co-authored-by: Aastha Singh <[email protected]>
  • Loading branch information
Aastha20 and Aastha Singh authored Oct 12, 2023
1 parent 40050a3 commit dac9f85
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"title": "Patch Network Security Perimeter",
"parameters": {
"api-version": "2021-02-01-preview",
"subscriptionId": "subId",
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"parameters": {
"tags": {
"description": "nsp1"
}
}
},
"responses": {
"200": {
"body": {
"name": "TestNetworkSecurityPerimeter",
"id": "/subscriptions/subId/resourceGroup/rg1/providers/Microsoft.Network/networkSecurityPerimeters/TestNetworkSecurityPerimeter",
"type": "Microsoft.Network/networkSecurityPerimeters",
"tags": {
"description": "nsp1"
},
"location": "East US 2 EUAP",
"properties": {
"perimeterGuid": "guid",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"resourceGroupName": "rg1",
"networkSecurityPerimeterName": "nsp1",
"profileName": "profile1",
"accessRuleName": "accessRule1",
"accessRuleName": "accessRuleName1",
"parameters": {
"properties": {}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,43 @@
"$ref": "./examples/NetworkSecurityPerimeterDelete.json"
}
}
},
"patch": {
"tags": [
"NetworkSecurityPerimeters"
],
"operationId": "NetworkSecurityPerimeters_Patch",
"description": "Patch Tags for a Network Security Perimeter.",
"parameters": [
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/UpdateTagsRequest"
},
"description": "Parameter supplied to the network security perimeter."
}
],
"responses": {
"200": {
"description": "Request is successful. Returns the resulting network security perimeter resource.",
"schema": {
"$ref": "#/definitions/NetworkSecurityPerimeter"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./network.json#/definitions/CloudError"
}
}
},
"x-ms-examples": {
"Patch Network Security Perimeter": {
"$ref": "./examples/NetworkSecurityPerimeterPatch.json"
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkSecurityPerimeters": {
Expand Down Expand Up @@ -1285,6 +1322,24 @@
},
"description": "Properties of network security perimeter."
},
"UpdateTagsRequest": {
"type": "object",
"properties": {
"id": {
"readOnly": true,
"type": "string",
"description": "Network security perimeter identifier."
},
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "List of tags for Network Security Perimeter"
}
},
"description": "Update tags request."
},
"NspProfile": {
"type": "object",
"properties": {
Expand Down

0 comments on commit dac9f85

Please sign in to comment.