-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Purview - PDS] - 2021-01-01-preview (#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 <gauravgupta@microsoft.com>
- Loading branch information
1 parent
d8a5fbd
commit 89a1da5
Showing
6 changed files
with
638 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2777,6 +2777,7 @@ Sami | |
Santali | ||
Sirmauri | ||
Skolt | ||
Gondor | ||
Thangmi | ||
Tuvan | ||
Uyghur | ||
|
46 changes: 46 additions & 0 deletions
46
....Analytics.Purview.PDS/preview/2022-11-01-preview/examples/DatasourcePreferences_Get.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parameters": { | ||
"scope": "/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/microsoft.sql/servers/pansharm-sql", | ||
"api-version": "2022-11-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f" | ||
}, | ||
"body": { | ||
"consent": { | ||
"properties": { | ||
"scanner": { | ||
"metadata": false, | ||
"classification": false | ||
}, | ||
"dataUseGovernance": true | ||
}, | ||
"excludedScopes": [] | ||
}, | ||
"accountInfo": { | ||
"id": "e11948a3-39b2-4daa-931c-2fca8308920e", | ||
"name": "pansharm2", | ||
"location": "westus", | ||
"tenantId": "f686d426-8d16-42db-81b7-ab578e110ccd", | ||
"gatewayEndpoint": "https://pansharm2.purview.azure-test.com" | ||
}, | ||
"frequency": 5 | ||
} | ||
}, | ||
"default": { | ||
"headers": { | ||
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f" | ||
}, | ||
"body": { | ||
"error": { | ||
"code": "1001", | ||
"message": "Simple error message.", | ||
"target": "Detailed message or error trace.", | ||
"details": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
.../Azure.Analytics.Purview.PDS/preview/2022-11-01-preview/examples/PolicyElements_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"parameters": { | ||
"scope": "/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/microsoft.sql/servers/pansharm-sql", | ||
"$filter": "atScope", | ||
"api-version": "2022-11-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f" | ||
}, | ||
"body": { | ||
"count": 2, | ||
"syncToken": "25252:0", | ||
"elements": [ | ||
{ | ||
"id": "5f448cc9-33cc-47de-910c-c2de1212cb2f", | ||
"kind": "policy", | ||
"updatedAt": "2022-04-12T09:43:35.4515155Z", | ||
"version": 8, | ||
"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\"}]]}]}" | ||
}, | ||
{ | ||
"id": "e870dcfa-d89d-4fc1-90a9-ef758d299e15", | ||
"scopes": [ | ||
"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg" | ||
], | ||
"kind": "policyset", | ||
"updatedAt": "2022-03-07T05:21:52.2823168Z", | ||
"version": 1, | ||
"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\"]}" | ||
} | ||
] | ||
} | ||
}, | ||
"default": { | ||
"headers": { | ||
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f" | ||
}, | ||
"body": { | ||
"error": { | ||
"code": "1001", | ||
"message": "Simple error message.", | ||
"target": "Detailed message or error trace.", | ||
"details": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...ne/Azure.Analytics.Purview.PDS/preview/2022-11-01-preview/examples/PolicyEvents_List.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"parameters": { | ||
"scope": "/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg/providers/microsoft.sql/servers/pansharm-sql", | ||
"syncToken": "25251:0", | ||
"api-version": "2022-11-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": { | ||
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f" | ||
}, | ||
"body": { | ||
"count": 2, | ||
"syncToken": "25258:0", | ||
"elements": [ | ||
{ | ||
"eventType": "Microsoft.Purview/PolicyElements/Write", | ||
"id": "e870dcfa-d89d-4fc1-90a9-ef758d299e15", | ||
"scopes": [ | ||
"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg" | ||
], | ||
"kind": "policyset", | ||
"updatedAt": "2022-03-07T05:21:52.2823168Z", | ||
"version": 1, | ||
"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\"]}" | ||
}, | ||
{ | ||
"eventType": "Microsoft.Purview/PolicyElements/Write", | ||
"id": "5f448cc9-33cc-47de-910c-c2de1212cb2f", | ||
"scopes": [ | ||
"/subscriptions/30d9d527-c409-4507-b861-d60e7fe9e292/resourcegroups/pansharm-rg" | ||
], | ||
"kind": "policy", | ||
"updatedAt": "2022-06-02T17:05:43.0981228Z", | ||
"version": 9, | ||
"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\"}]]}]}" | ||
} | ||
] | ||
} | ||
}, | ||
"304": { | ||
"headers": { | ||
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f" | ||
} | ||
}, | ||
"default": { | ||
"headers": { | ||
"x-ms-correlation-request-id": "f35b289b-7deb-467b-9976-a163926f981f" | ||
}, | ||
"body": { | ||
"error": { | ||
"code": "1001", | ||
"message": "Simple error message.", | ||
"target": "Detailed message or error trace.", | ||
"details": [] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.