Skip to content

Commit 635059f

Browse files
Update examples and description for Catalog (#16761)
* IoT Central Public API 1.1-preview Oct Release (#16514) * Add new 2.0-preview.1 version for IoT Central * fix typo on enum value * rollback 1.0 changes, applied 2.0-preview.1 * fix typo * remove non-used examples * fix style * update version from 2.0-preview.1 to 1.1-preview * update code review comments, fix patch consumes with json-patch support, fix examples for fileupload * add nextLink to collection of orgs * fix typo * fix wrong position of paging * fix the paging * add . to description * update default to use enum for api-version * add oct release with query, cde v2, device filter, device template filter, relationship, edge template, simplified template patching * update examples * fix lint error, model validation * fix missing type in examples, remove url format * fix ID case * fix id case * fix ID case * add iotc query language reference * fix typo * update examples and description * Update purviewcatalog.json * update examples for query * update example & parameter name * Update purviewcatalog.json Co-authored-by: Johnson Yang <[email protected]>
1 parent b8d48bc commit 635059f

15 files changed

+87
-43
lines changed

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
}
4141
]
4242
},
43-
"limit": 2,
43+
"limit": 10,
4444
"offset": 0,
4545
"facets": [
4646
{
@@ -77,20 +77,6 @@
7777
"sort": {
7878
"count": "desc"
7979
}
80-
},
81-
{
82-
"facet": "classificationCategory",
83-
"count": 0,
84-
"sort": {
85-
"count": "desc"
86-
}
87-
},
88-
{
89-
"facet": "fileExtension",
90-
"count": 0,
91-
"sort": {
92-
"count": "desc"
93-
}
9480
}
9581
]
9682
},

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_And.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"searchRequest": {
55
"keywords": null,
6-
"limit": 2,
6+
"limit": 10,
77
"filter": {
88
"and": [
99
{

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_AndOrNested.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"searchRequest": {
55
"keywords": null,
6-
"limit": 2,
6+
"limit": 10,
77
"filter": {
88
"and": [
99
{

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_AssetType.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"searchRequest": {
55
"keywords": null,
6-
"limit": 2,
6+
"limit": 10,
77
"filter": {
88
"or": [
99
{

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_Attribute.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"searchRequest": {
55
"keywords": null,
6-
"limit": 2,
6+
"limit": 10,
77
"filter": {
88
"attributeName": "name",
99
"operator": "eq",

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_Classification.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"searchRequest": {
55
"keywords": null,
6-
"limit": 2,
6+
"limit": 10,
77
"filter": {
88
"classification": "MICROSOFT.PERSONAL.EMAIL",
99
"includeSubClassifications": true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{Endpoint}",
4+
"searchRequest": {
5+
"keywords": null,
6+
"limit": 10,
7+
"filter": {
8+
"collectionId": "collectionName"
9+
}
10+
},
11+
"api-version": "2021-05-01-preview"
12+
},
13+
"responses": {
14+
"200": {
15+
"body": {
16+
"@search.count": 5,
17+
"value": [
18+
{
19+
"@search.score": 1.0,
20+
"id": "b9638b91-884f-4e5e-98b5-29f6f6f60000",
21+
"qualifiedName": "mssql://exampleserver.database.windows.net/examplesqldb/examplepath/exampledata1",
22+
"name": "exampledata1",
23+
"description": null,
24+
"owner": null,
25+
"entityType": "azure_sql_table",
26+
"classification": [
27+
"MICROSOFT.PERSONAL.NAME",
28+
"MICROSOFT.PERSONAL.EU.PHONE_NUMBER",
29+
"MICROSOFT.PERSONAL.US.PHONE_NUMBER",
30+
"MICROSOFT.PERSONAL.EMAIL"
31+
],
32+
"label": [],
33+
"assetType": [
34+
"Azure SQL Database"
35+
],
36+
"term": [],
37+
"contact": []
38+
},
39+
{
40+
"@search.score": 1.0,
41+
"id": "01aefb9a-61cd-4a02-a572-70f6f6f60000",
42+
"qualifiedName": "mssql://exampleserver.database.windows.net/exampledw/examplepath/exampledata2",
43+
"name": "exampledata2",
44+
"description": null,
45+
"owner": null,
46+
"entityType": "azure_sql_dw_table",
47+
"classification": [
48+
"MICROSOFT.GOVERNMENT.CITY_NAME",
49+
"MICROSOFT.GOVERNMENT.US.STATE",
50+
"MICROSOFT.PERSONAL.NAME",
51+
"MICROSOFT.PERSONAL.EU.PHONE_NUMBER",
52+
"MICROSOFT.PERSONAL.EMAIL"
53+
],
54+
"label": [],
55+
"assetType": [
56+
"Azure SQL Data Warehouse"
57+
],
58+
"term": [],
59+
"contact": []
60+
}
61+
]
62+
}
63+
}
64+
}
65+
}

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_Facet.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
}
1414
]
1515
},
16-
"limit": 2,
16+
"limit": 10,
1717
"offset": 0,
1818
"facets": [
1919
{
2020
"facet": "assetType",
21-
"count": 0
21+
"count": 10
2222
},
2323
{
2424
"facet": "classification",
@@ -28,17 +28,9 @@
2828
"facet": "term",
2929
"count": 10
3030
},
31-
{
32-
"facet": "fileExtension",
33-
"count": 10
34-
},
3531
{
3632
"facet": "label",
3733
"count": 10
38-
},
39-
{
40-
"facet": "classificationCategory",
41-
"count": 10
4234
}
4335
]
4436
},
@@ -75,7 +67,6 @@
7567
"value": "MICROSOFT.GOVERNMENT.US.STATE"
7668
}
7769
],
78-
"fileExtension": [],
7970
"assetType": [
8071
{
8172
"count": 1476,
@@ -116,7 +107,6 @@
116107
"value": "Example.Label"
117108
}
118109
],
119-
"classificationCategory": [],
120110
"term": [
121111
{
122112
"count": 1,

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_FileExtension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"searchRequest": {
55
"keywords": null,
6-
"limit": 2,
6+
"limit": 10,
77
"filter": {
88
"and": [
99
{

specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/examples/Discovery_Query_Id.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"Endpoint": "{Endpoint}",
44
"searchRequest": {
55
"keywords": null,
6-
"limit": 2,
6+
"limit": 10,
77
"filter": {
88
"and": [
99
{

0 commit comments

Comments
 (0)