Skip to content

Commit 966d0e9

Browse files
pansharm-msgauravgupta2
authored andcommitted
[Purview - PDS] - 2021-01-01-preview (Azure#20142)
* Add PDS swagger specification. * Use default instead of multiple error codes. * Add desctiptions. * Fix error response model. * Update PDS api specifications as per API guidelines * Pretty. * Correct example. * fix dug property. * Remove from custom words. * Fix linting errors. * Fix errors. * Fix conflict. * Fix examples. * Fix linting errors. * Linting errors. * Linting errors. * Fix operatio Id. * Fix x-ms-pageable. * Add filter description. Co-authored-by: Gaurav Gupta <[email protected]>
1 parent f7545ea commit 966d0e9

File tree

6 files changed

+638
-0
lines changed

6 files changed

+638
-0
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,6 +2777,7 @@ Sami
27772777
Santali
27782778
Sirmauri
27792779
Skolt
2780+
Gondor
27802781
Thangmi
27812782
Tuvan
27822783
Uyghur
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"parameters": {
3+
"scope": "/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/microsoft.sql/servers/pansharm-sql",
4+
"api-version": "2022-11-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {
9+
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f"
10+
},
11+
"body": {
12+
"consent": {
13+
"properties": {
14+
"scanner": {
15+
"metadata": false,
16+
"classification": false
17+
},
18+
"dataUseGovernance": true
19+
},
20+
"excludedScopes": []
21+
},
22+
"accountInfo": {
23+
"id": "e11948a3-39b2-4daa-931c-2fca8308920e",
24+
"name": "pansharm2",
25+
"location": "westus",
26+
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd",
27+
"gatewayEndpoint": "https://pansharm2.purview.azure-test.com"
28+
},
29+
"frequency": 5
30+
}
31+
},
32+
"default": {
33+
"headers": {
34+
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f"
35+
},
36+
"body": {
37+
"error": {
38+
"code": "1001",
39+
"message": "Simple error message.",
40+
"target": "Detailed message or error trace.",
41+
"details": []
42+
}
43+
}
44+
}
45+
}
46+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"parameters": {
3+
"scope": "/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/microsoft.sql/servers/pansharm-sql",
4+
"$filter": "atScope",
5+
"api-version": "2022-11-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f"
11+
},
12+
"body": {
13+
"count": 2,
14+
"syncToken": "25252:0",
15+
"elements": [
16+
{
17+
"id": "5f448cc9-33cc-47de-910c-c2de1212cb2f",
18+
"kind": "policy",
19+
"updatedAt": "2022-04-12T09:43:35.4515155Z",
20+
"version": 8,
21+
"elementJson": "{\"id\":\"5f448cc9-33cc-47de-910c-c2de1212cb2f\",\"name\":\"test004\",\"kind\":\"policy\",\"version\":8,\"updatedAt\":\"2022-04-12T09:43:35.4515155Z\",\"decisionRules\":[{\"kind\":\"decisionrule\",\"effect\":\"Permit\",\"updatedAt\":\"04/12/2022 09:43:35\",\"cnfCondition\":[[{\"attributeName\":\"resource.azure.path\",\"attributeValueIncludedIn\":[\"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/Microsoft.AzureArcData/SqlServerInstances/pansharm-sql/**\"]}],[{\"attributeName\":\"principal.microsoft.id\",\"attributeValueIncludedIn\":[\"ca4709b3-1fdd-4032-9844-3039025e8ee0\"]}],[{\"fromRule\":\"purviewdatarole_builtin_sqlperfmonitor\",\"attributeName\":\"derived.purview.role\",\"attributeValueIncludes\":\"purviewdatarole_builtin_sqlperfmonitor\"}]]}]}"
22+
},
23+
{
24+
"id": "e870dcfa-d89d-4fc1-90a9-ef758d299e15",
25+
"scopes": [
26+
"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg"
27+
],
28+
"kind": "policyset",
29+
"updatedAt": "2022-03-07T05:21:52.2823168Z",
30+
"version": 1,
31+
"elementJson": "{\"id\":\"e870dcfa-d89d-4fc1-90a9-ef758d299e15\",\"name\":\"e870dcfa-d89d-4fc1-90a9-ef758d299e15\",\"kind\":\"policyset\",\"version\":1,\"updatedAt\":\"2022-03-07T05:21:52.2823168Z\",\"preconditionRules\":[{\"dnfCondition\":[[{\"attributeName\":\"resource.azure.path\",\"attributeValueIncludedIn\":[\"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/**\"]}]]}],\"policyRefs\":[\"5f448cc9-33cc-47de-910c-c2de1212cb2f\"]}"
32+
}
33+
]
34+
}
35+
},
36+
"default": {
37+
"headers": {
38+
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f"
39+
},
40+
"body": {
41+
"error": {
42+
"code": "1001",
43+
"message": "Simple error message.",
44+
"target": "Detailed message or error trace.",
45+
"details": []
46+
}
47+
}
48+
}
49+
}
50+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
"parameters": {
3+
"scope": "/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/microsoft.sql/servers/pansharm-sql",
4+
"syncToken": "25251:0",
5+
"api-version": "2022-11-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f"
11+
},
12+
"body": {
13+
"count": 2,
14+
"syncToken": "25258:0",
15+
"elements": [
16+
{
17+
"eventType": "Microsoft.Purview/PolicyElements/Write",
18+
"id": "e870dcfa-d89d-4fc1-90a9-ef758d299e15",
19+
"scopes": [
20+
"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg"
21+
],
22+
"kind": "policyset",
23+
"updatedAt": "2022-03-07T05:21:52.2823168Z",
24+
"version": 1,
25+
"elementJson": "{\"id\":\"e870dcfa-d89d-4fc1-90a9-ef758d299e15\",\"name\":\"e870dcfa-d89d-4fc1-90a9-ef758d299e15\",\"kind\":\"policyset\",\"version\":1,\"updatedAt\":\"2022-03-07T05:21:52.2823168Z\",\"preconditionRules\":[{\"dnfCondition\":[[{\"attributeName\":\"resource.azure.path\",\"attributeValueIncludedIn\":[\"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/**\"]}]]}],\"policyRefs\":[\"5f448cc9-33cc-47de-910c-c2de1212cb2f\"]}"
26+
},
27+
{
28+
"eventType": "Microsoft.Purview/PolicyElements/Write",
29+
"id": "5f448cc9-33cc-47de-910c-c2de1212cb2f",
30+
"scopes": [
31+
"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg"
32+
],
33+
"kind": "policy",
34+
"updatedAt": "2022-06-02T17:05:43.0981228Z",
35+
"version": 9,
36+
"elementJson": "{\"id\":\"5f448cc9-33cc-47de-910c-c2de1212cb2f\",\"name\":\"test004\",\"kind\":\"policy\",\"version\":9,\"updatedAt\":\"2022-06-02T17:05:43.0981228Z\",\"decisionRules\":[{\"kind\":\"decisionrule\",\"effect\":\"Permit\",\"id\":\"3ef47a19-55ab-4c3e-bfe4-b274489555da\",\"updatedAt\":\"06/02/2022 17:05:43\",\"cnfCondition\":[[{\"attributeName\":\"resource.azure.path\",\"attributeValueIncludedIn\":[\"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/Microsoft.AzureArcData/SqlServerInstances/pansharm-sql/**\"]}],[{\"attributeName\":\"principal.microsoft.id\",\"attributeValueIncludedIn\":[\"ca4709b3-1fdd-4032-9844-3039025e8ee0\"]}],[{\"fromRule\":\"purviewdatarole_builtin_sqlperfmonitor\",\"attributeName\":\"derived.purview.role\",\"attributeValueIncludes\":\"purviewdatarole_builtin_sqlperfmonitor\"}]]}]}"
37+
}
38+
]
39+
}
40+
},
41+
"304": {
42+
"headers": {
43+
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f"
44+
}
45+
},
46+
"default": {
47+
"headers": {
48+
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f"
49+
},
50+
"body": {
51+
"error": {
52+
"code": "1001",
53+
"message": "Simple error message.",
54+
"target": "Detailed message or error trace.",
55+
"details": []
56+
}
57+
}
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)