Skip to content

Commit 86366cc

Browse files
sid-uniSidhant Sharma
andauthored
Added optional parameter for datamap remove classification api (#39983)
* Added optional parameter for datamap remove classification api * Updated TypeSpec and example for remove classification api * Datamap api example update --------- Co-authored-by: Sidhant Sharma <sidhansharma@microsoft.com>
1 parent 4f9f635 commit 86366cc

4 files changed

Lines changed: 15 additions & 2 deletions

File tree

specification/purview/data-plane/datamap/examples/2023-09-01/Entity_RemoveClassification.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"parameters": {
33
"Endpoint": "{Endpoint}",
44
"guid": "cc0730ba-9b30-41f0-6953-559d17626d2b",
5-
"classificationName": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER"
5+
"classificationName": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER",
6+
"suppressDeletedClassification": true
67
},
78
"responses": {
89
"204": {}

specification/purview/data-plane/datamap/routes.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ interface Entity {
308308
@doc("The name of the classification.")
309309
@path
310310
classificationName: string;
311+
312+
@doc("To prevent classification changes from being overridden during regular scans, set this parameter to true. The default value is false.")
313+
@query
314+
suppressDeletedClassification?: boolean;
311315
},
312316
void,
313317
{}

specification/purview/data-plane/datamap/stable/2023-09-01/examples/Entity_RemoveClassification.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"parameters": {
33
"Endpoint": "{Endpoint}",
44
"guid": "cc0730ba-9b30-41f0-6953-559d17626d2b",
5-
"classificationName": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER"
5+
"classificationName": "MICROSOFT.FINANCIAL.US.ABA_ROUTING_NUMBER",
6+
"suppressDeletedClassification": true
67
},
78
"responses": {
89
"204": {}

specification/purview/data-plane/datamap/stable/2023-09-01/purviewdatamap.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -873,6 +873,13 @@
873873
"description": "The name of the classification.",
874874
"required": true,
875875
"type": "string"
876+
},
877+
{
878+
"name": "suppressDeletedClassification",
879+
"in": "query",
880+
"description": "To prevent classification changes from being overridden during regular scans, set this parameter to true. The default value is false.",
881+
"required": false,
882+
"type": "boolean"
876883
}
877884
],
878885
"responses": {

0 commit comments

Comments
 (0)