Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/datamap tsp #26702

Merged
merged 137 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from 129 commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
7fcdb36
initial commit
catalinaperalta Nov 2, 2023
22f6a19
update attr
catalinaperalta Nov 8, 2023
5a37c4e
add security scheme
catalinaperalta Nov 8, 2023
c9c74a0
Update models.tsp
yifan-zhou922 Nov 13, 2023
506ddf6
update
yifan-zhou922 Nov 15, 2023
e057bb4
Update models.tsp
yifan-zhou922 Nov 15, 2023
1451f83
update
yifan-zhou922 Nov 15, 2023
0567786
update examples
yifan-zhou922 Nov 15, 2023
7f6f2e4
update
yifan-zhou922 Nov 15, 2023
8c6b39d
update
yifan-zhou922 Nov 17, 2023
ae10d95
update
yifan-zhou922 Nov 17, 2023
2b34456
Update routes.tsp
yifan-zhou922 Nov 20, 2023
ee8979e
update
yifan-zhou922 Nov 21, 2023
eef5e2b
Update routes.tsp
yifan-zhou922 Nov 21, 2023
634fb65
Update tspconfig.yaml
yifan-zhou922 Nov 22, 2023
58d42dd
update interface name
yifan-zhou922 Nov 23, 2023
5ea5a2c
update query parameter to non-requried and correct int mdoel
yifan-zhou922 Nov 23, 2023
a989ff1
correct response status code from 204 to 200
yifan-zhou922 Nov 23, 2023
513fc8b
Create openapi.json
yifan-zhou922 Nov 23, 2023
6db5a14
update typo
yifan-zhou922 Nov 23, 2023
4121d4b
Update openapi.json
yifan-zhou922 Nov 23, 2023
95e6b6d
update
yifan-zhou922 Nov 23, 2023
fdd86c8
update examples
yifan-zhou922 Nov 24, 2023
5d01062
update examples
yifan-zhou922 Nov 24, 2023
b5528e6
update
yifan-zhou922 Nov 24, 2023
d266093
update examples
yifan-zhou922 Nov 24, 2023
d02dab7
update
yifan-zhou922 Nov 24, 2023
cd0aa2b
update example
yifan-zhou922 Nov 24, 2023
e4dabe0
update businessMetadata
yifan-zhou922 Nov 24, 2023
c3499c6
Update purviewdatamap.json
yifan-zhou922 Nov 24, 2023
a677c02
Update custom-words.txt
yifan-zhou922 Nov 24, 2023
967df05
Update purviewdatamap.json
yifan-zhou922 Nov 24, 2023
e6c029f
update searchoperator filter
yifan-zhou922 Nov 24, 2023
ba2b8e7
update import examples
yifan-zhou922 Nov 24, 2023
a8660f7
update
yifan-zhou922 Nov 24, 2023
b6c6947
Update Search Filters (#26837)
yaleiZhao Nov 24, 2023
c518064
update
yifan-zhou922 Nov 24, 2023
ae3be9e
Merge branch 'feature/datamap-tsp' of ssh://github.com/Azure/azure-re…
yifan-zhou922 Nov 24, 2023
8450f55
Delete openapi.json
yifan-zhou922 Nov 24, 2023
2d1cd1b
add @client
yifan-zhou922 Nov 28, 2023
59bf3c1
Update routes.tsp
yifan-zhou922 Nov 28, 2023
cbc61f4
Update routes.tsp
yifan-zhou922 Nov 30, 2023
bd0708c
Update tspconfig.yaml
yifan-zhou922 Dec 4, 2023
09495a6
Update main.tsp
yifan-zhou922 Dec 4, 2023
aad3377
Update specification/purview/Azure.Analytics.Purview.DataMap/main.tsp
yifan-zhou922 Dec 5, 2023
a693e84
updated
yifan-zhou922 Dec 5, 2023
f9ae1c9
Update models.tsp
yifan-zhou922 Dec 5, 2023
7dab36e
update error response
yifan-zhou922 Dec 5, 2023
1ddbdd9
Update models.tsp
yifan-zhou922 Dec 5, 2023
df20c1d
update descriptions
yifan-zhou922 Dec 5, 2023
1fb8066
run tsp format
yifan-zhou922 Dec 6, 2023
fe6df80
Create openapi.json
yifan-zhou922 Dec 6, 2023
5f3a726
update
yifan-zhou922 Dec 6, 2023
8da84ed
add api version
yifan-zhou922 Dec 6, 2023
82cf5ab
updated
yifan-zhou922 Dec 6, 2023
6fbb57e
guid is not required
yifan-zhou922 Dec 6, 2023
63d1892
update examples
yifan-zhou922 Dec 6, 2023
9155626
update search filter
yifan-zhou922 Dec 7, 2023
52aed9c
update model name
yifan-zhou922 Dec 7, 2023
2c5e87c
Merge branch 'main' into feature/datamap-tsp
yifan-zhou922 Dec 7, 2023
52827f6
updated
yifan-zhou922 Dec 7, 2023
71cad01
update client.tsp
yifan-zhou922 Dec 8, 2023
5b6d26e
Update client.tsp
yifan-zhou922 Dec 8, 2023
a08914f
update client.tsp
yifan-zhou922 Dec 8, 2023
968711e
Update client.tsp
yifan-zhou922 Dec 8, 2023
e53b11a
update client.tsp
yifan-zhou922 Dec 8, 2023
5ad6751
update
yifan-zhou922 Dec 11, 2023
c14af8e
Update main.tsp
yifan-zhou922 Dec 11, 2023
ed67e08
Rename models by comments
yifan-zhou922 Dec 19, 2023
b40f219
Update openapi.json
yifan-zhou922 Dec 19, 2023
73cc3cc
client/method renaming
yifan-zhou922 Dec 19, 2023
a0637c8
Update client.tsp
yifan-zhou922 Dec 21, 2023
9b750b7
fix casing problem
yifan-zhou922 Dec 21, 2023
936b6e1
update comments
yifan-zhou922 Dec 21, 2023
047d75c
update
yifan-zhou922 Dec 21, 2023
b5e00bd
update discovery
yifan-zhou922 Jan 2, 2024
31161c8
update
yifan-zhou922 Jan 2, 2024
ef383a8
fix example bug
yifan-zhou922 Jan 2, 2024
5e308e8
update partalUpdates
yifan-zhou922 Jan 2, 2024
309cc20
Merge branch 'main' into feature/datamap-tsp
yifan-zhou922 Jan 2, 2024
f0afe46
update query parameter overwrite
yifan-zhou922 Jan 2, 2024
169af0b
Update attr to attribute
yifan-zhou922 Jan 2, 2024
2e3fef1
Update partialUpdates
yifan-zhou922 Jan 2, 2024
7219cbd
align using body parameter
yifan-zhou922 Jan 4, 2024
18ad5ed
Update Glossary_PartialUpdateCategory.json
yifan-zhou922 Jan 4, 2024
867767b
revert update examples in original example folder
yifan-zhou922 Jan 4, 2024
8f70032
Revert "revert update examples in original example folder"
yifan-zhou922 Jan 4, 2024
d31fe8a
Update Glossary_PartialUpdateCategory.json
yifan-zhou922 Jan 4, 2024
a03cfea
Revert "Update Glossary_PartialUpdateCategory.json"
yifan-zhou922 Jan 4, 2024
e1cd392
Revert "Revert "revert update examples in original example folder""
yifan-zhou922 Jan 4, 2024
1d705c9
Delete openapi.json
yifan-zhou922 Jan 4, 2024
a75674d
fix typeSpec validation error
yifan-zhou922 Jan 4, 2024
a77264c
Update purviewdatamap.json
yifan-zhou922 Jan 4, 2024
e5c8389
Update purviewdatamap.json
yifan-zhou922 Jan 4, 2024
da258da
update
yifan-zhou922 Jan 10, 2024
935554d
update
yifan-zhou922 Jan 11, 2024
54d7fc7
update
yifan-zhou922 Jan 11, 2024
45f60f6
update
yifan-zhou922 Jan 11, 2024
f48e21c
Update models.tsp
yifan-zhou922 Jan 18, 2024
c9fc231
Update models.tsp
yifan-zhou922 Jan 18, 2024
0217486
Update readme.md
yifan-zhou922 Jan 19, 2024
b414505
Update readme.md
yifan-zhou922 Jan 19, 2024
a371356
update
yifan-zhou922 Jan 26, 2024
81e432f
update
yifan-zhou922 Jan 31, 2024
b7e79b4
Update openapi.json
yifan-zhou922 Jan 31, 2024
ddb2801
move to cSpell.json
yifan-zhou922 Jan 31, 2024
61d159e
Merge branch 'main' into feature/datamap-tsp
yifan-zhou922 Jan 31, 2024
0b87b77
update examples
yifan-zhou922 Jan 31, 2024
1c4269c
update examples
yifan-zhou922 Jan 31, 2024
82f6601
fix api doc preview
yifan-zhou922 Feb 1, 2024
3bc04af
update csharp naming
yifan-zhou922 Feb 1, 2024
536e2ad
update
yifan-zhou922 Feb 1, 2024
2a24220
Update client.tsp
yifan-zhou922 Feb 1, 2024
1113bc3
keep purviewdatamap.json
yifan-zhou922 Feb 1, 2024
9ec6c18
Update readme.md
yifan-zhou922 Feb 1, 2024
03d0031
test for csharp operation group name
yifan-zhou922 Feb 1, 2024
ec02e53
Update routes.tsp
yifan-zhou922 Feb 1, 2024
127d381
Update routes.tsp
yifan-zhou922 Feb 2, 2024
14754b3
fix comments
yifan-zhou922 Feb 2, 2024
1a0e31b
Update routes.tsp
yifan-zhou922 Feb 2, 2024
9bb7d78
move to client.tsp
yifan-zhou922 Feb 2, 2024
e50c888
Update client.tsp
yifan-zhou922 Feb 2, 2024
46f90c4
Update client.tsp
yifan-zhou922 Feb 2, 2024
c0c8608
Update client.tsp
yifan-zhou922 Feb 2, 2024
4558f10
update api version query parameter
yifan-zhou922 Feb 2, 2024
5003e33
update api version query parameter
yifan-zhou922 Feb 2, 2024
e4b01b4
update
yifan-zhou922 Feb 2, 2024
e29e781
set the body for label API to align with the GA swagger doc
yifan-zhou922 Feb 2, 2024
2fbe2cd
Update api version query parameter
yifan-zhou922 Feb 2, 2024
18652fe
update for comments
yifan-zhou922 Feb 4, 2024
20bbcbc
update
yifan-zhou922 Feb 4, 2024
16126a4
Update routes.tsp
yifan-zhou922 Feb 4, 2024
a9e8ec2
update the createTime/updateTIme for an issue in csharp generator
yifan-zhou922 Feb 4, 2024
4b75452
Revert "update the createTime/updateTIme for an issue in csharp gener…
yifan-zhou922 Feb 6, 2024
fa11137
update with safeint
yifan-zhou922 Feb 6, 2024
fabf9af
Merge branch 'main' into feature/datamap-tsp
yifan-zhou922 Feb 6, 2024
6d23227
update to encodeName
yifan-zhou922 Feb 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cSpell.json
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,12 @@
"throughputpool"
]
},
{
"filename": "**/specification/purview/data-plane/Azure.Analytics.Purview.DataMap/**/*.json",
"words": [
"timerange"
]
},
{
"filename": "**/specification/search/data-plane/Azure.Search/**/*.json",
"words": [
Expand Down
161 changes: 161 additions & 0 deletions specification/purview/Azure.Analytics.Purview.DataMap/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
import "./main.tsp";
import "@azure-tools/typespec-client-generator-core";

using Azure.ClientGenerator.Core;
using PurviewDataMap;

@TypeSpec.Versioning.useDependency(PurviewDataMap.ApiVersions.v2023_09_01)
@client({
name: "DataMapClient",
service: PurviewDataMap,
})
namespace Customizations;

@@access(MoveEntitiesOptions, Access.public);
catalinaperalta marked this conversation as resolved.
Show resolved Hide resolved
@@projectedName(MoveEntitiesOptions, "csharp", "MoveEntitiesConfig");
@@access(DateFormat, Access.public);
@@projectedName(DateFormat, "csharp", "AtlasDateFormat");
@@access(NumberFormat, Access.public);
@@projectedName(NumberFormat, "csharp", "AtlasNumberFormat");
@@access(TimeZone, Access.public);
@@projectedName(TimeZone, "csharp", "AtlasTimeZone");
@@access(SortType, Access.public);
@@projectedName(SortType, "csharp", "AtlasSortType");
@@access(ClassificationAssociateOptions, Access.public);
@@projectedName(ClassificationAssociateOptions,
"csharp",
"ClassificationAssociateConfig"
);
@@access(QueryOptions, Access.public);
@@projectedName(QueryOptions, "csharp", "QueryConfig");
@@access(SuggestOptions, Access.public);
@@projectedName(SuggestOptions, "csharp", "SuggestConfig");
@@access(AutoCompleteOptions, Access.public);
@@projectedName(AutoCompleteOptions, "csharp", "AutoCompleteConfig");

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@operationGroup
interface Entity {
createOrUpdate is PurviewDataMap.Entity.createOrUpdate;
getByIds is PurviewDataMap.Entity.listByGuids;
batchCreateOrUpdate is PurviewDataMap.Entity.bulkCreateOrUpdate;
batchDelete is PurviewDataMap.Entity.bulkDelete;
addClassification is PurviewDataMap.Entity.addClassification;
get is PurviewDataMap.Entity.get;
updateAttributeById is PurviewDataMap.Entity.partialUpdateAttributeByGuid;
delete is PurviewDataMap.Entity.delete;
getClassification is PurviewDataMap.Entity.getClassification;
removeClassification is PurviewDataMap.Entity.removeClassification;
getClassifications is PurviewDataMap.Entity.getClassifications;
addClassifications is PurviewDataMap.Entity.addClassifications;
updateClassifications is PurviewDataMap.Entity.updateClassifications;
getByUniqueAttribute is PurviewDataMap.Entity.getByUniqueAttributes;
updateByUniqueAttribute is PurviewDataMap.Entity.partialUpdateByUniqueAttributes;
deleteByUniqueAttribute is PurviewDataMap.Entity.deleteByUniqueAttribute;
removeClassificationByUniqueAttribute is PurviewDataMap.Entity.removeClassificationByUniqueAttribute;
addClassificationsByUniqueAttribute is PurviewDataMap.Entity.addClassificationsByUniqueAttribute;
updateClassificationsUniqueByAttribute is PurviewDataMap.Entity.updateClassificationsByUniqueAttribute;
batchSetClassifications is PurviewDataMap.Entity.bulkSetClassifications;
batchGetByUniqueAttributes is PurviewDataMap.Entity.listByUniqueAttributes;
getHeader is PurviewDataMap.Entity.getHeader;
removeBusinessMetadata is PurviewDataMap.Entity.removeBusinessMetadata;
addOrUpdateBusinessMetadata is PurviewDataMap.Entity.addOrUpdateBusinessMetadata;
removeBusinessMetadataAttributes is PurviewDataMap.Entity.removeBusinessMetadataAttributes;
addOrUpdateBusinessMetadataAttributes is PurviewDataMap.Entity.addOrUpdateBusinessMetadataAttributes;
getBusinessMetadataTemplate is PurviewDataMap.Entity.getSampleBusinessMetadataTemplate;
#suppress "@azure-tools/typespec-azure-core/byos" "This is Atlas API"
importBusinessMetadata is PurviewDataMap.Entity.importBusinessMetadata;
removeLabels is PurviewDataMap.Entity.removeLabels;
setLabels is PurviewDataMap.Entity.setLabels;
addLabel is PurviewDataMap.Entity.addLabel;
removeLabelsByUniqueAttribute is PurviewDataMap.Entity.removeLabelsByUniqueAttribute;
setLabelsByUniqueAttribute is PurviewDataMap.Entity.setLabelsByUniqueAttribute;
addLabelsByUniqueAttribute is PurviewDataMap.Entity.addLabelsByUniqueAttribute;
moveEntitiesToCollection is PurviewDataMap.Entity.moveEntitiesToCollection;
}

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@operationGroup
interface Glossary {
batchGet is PurviewDataMap.Glossary.list;
create is PurviewDataMap.Glossary.create;
catalinaperalta marked this conversation as resolved.
Show resolved Hide resolved
createCategories is PurviewDataMap.Glossary.createCategories;
createCategory is PurviewDataMap.Glossary.createCategory;
getCategory is PurviewDataMap.Glossary.getCategory;
updateCategory is PurviewDataMap.Glossary.updateCategory;
deleteCategory is PurviewDataMap.Glossary.deleteCategory;
partialUpdateCategory is PurviewDataMap.Glossary.partialUpdateCategory;
getRelatedCategories is PurviewDataMap.Glossary.listRelatedCategories;
getCategoryTerms is PurviewDataMap.Glossary.listCategoryTerms;
createTerm is PurviewDataMap.Glossary.createTerm;
getTerm is PurviewDataMap.Glossary.getTerm;
updateTerm is PurviewDataMap.Glossary.updateTerm;
deleteTerm is PurviewDataMap.Glossary.deleteTerm;
partialUpdateTerm is PurviewDataMap.Glossary.partialUpdateTerm;
createTerms is PurviewDataMap.Glossary.createTerms;
getEntitiesAssignedWithTerm is PurviewDataMap.Glossary.listEntitiesAssignedWithTerm;
assignTermToEntities is PurviewDataMap.Glossary.assignTermToEntities;
deleteTermAssignmentFromEntities is PurviewDataMap.Glossary.deleteTermAssignmentFromEntities;
getRelatedTerms is PurviewDataMap.Glossary.listRelatedTerms;
get is PurviewDataMap.Glossary.get;
update is PurviewDataMap.Glossary.update;
delete is PurviewDataMap.Glossary.delete;
getCategories is PurviewDataMap.Glossary.listCategories;
getCategoriesHeaders is PurviewDataMap.Glossary.listCategoriesHeaders;
getDetailed is PurviewDataMap.Glossary.getDetailed;
partialUpdate is PurviewDataMap.Glossary.partialUpdate;
getTerms is PurviewDataMap.Glossary.listTerms;
getTermHeaders is PurviewDataMap.Glossary.listTermHeaders;
}

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@operationGroup
interface Discovery {
query is PurviewDataMap.Discovery.query;
suggest is PurviewDataMap.Discovery.suggest;
autoComplete is PurviewDataMap.Discovery.autoComplete;
}

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@operationGroup
interface Lineage {
get is PurviewDataMap.Lineage.get;
getNextPage is PurviewDataMap.Lineage.getNextPage;
getByUniqueAttribute is PurviewDataMap.Lineage.getByUniqueAttribute;
}

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@operationGroup
interface Relationship {
yifan-zhou922 marked this conversation as resolved.
Show resolved Hide resolved
create is PurviewDataMap.Relationship.create;
update is PurviewDataMap.Relationship.update;
get is PurviewDataMap.Relationship.get;
delete is PurviewDataMap.Relationship.delete;
}

#suppress "@azure-tools/typespec-azure-core/use-standard-operations"
@operationGroup
interface TypeDefinition {
getBusinessMetadataById is PurviewDataMap.Type.getBusinessMetadataDefByGuid;
getBusinessMetadataByName is PurviewDataMap.Type.getBusinessMetadataDefByName;
getClassificationById is PurviewDataMap.Type.getClassificationDefByGuid;
getClassificationByName is PurviewDataMap.Type.getClassificationDefByName;
getEntityById is PurviewDataMap.Type.getEntityDefByGuid;
getEntityByName is PurviewDataMap.Type.getEntityDefByName;
getEnumById is PurviewDataMap.Type.getEnumDefByGuid;
getEnumByName is PurviewDataMap.Type.getEnumDefByName;
getRelationshipById is PurviewDataMap.Type.getRelationshipDefByGuid;
getRelationshipByName is PurviewDataMap.Type.getRelationshipDefByName;
getStructById is PurviewDataMap.Type.getStructDefByGuid;
getStructByName is PurviewDataMap.Type.getStructDefByName;
getById is PurviewDataMap.Type.getByGuid;
getByName is PurviewDataMap.Type.getByName;
delete is PurviewDataMap.Type.delete;
get is PurviewDataMap.Type.list;
batchCreate is PurviewDataMap.Type.bulkCreate;
batchUpdate is PurviewDataMap.Type.bulkUpdate;
batchDelete is PurviewDataMap.Type.bulkDelete;
getHeaders is PurviewDataMap.Type.listHeaders;
getTermTemplateById is PurviewDataMap.Type.getTermTemplateDefByGuid;
getTermTemplateByName is PurviewDataMap.Type.getTermTemplateDefByName;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"body": {
"keywords": "exa",
"filter": {
"and": [
{
"entityType": "azure_blob_path",
"includeSubTypes": false
}
]
},
"limit": 10
},
"api-version": "2023-09-01"
},
"responses": {
"200": {
"body": {
"value": [
{
"text": "example",
"queryPlusText": "example"
},
{
"text": "exampleconfiguration",
"queryPlusText": "exampleconfiguration"
},
{
"text": "exampleresources",
"queryPlusText": "exampleresources"
}
]
}
}
},
"title": "Discovery_AutoComplete",
"operationId": "Discovery_AutoComplete"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"parameters": {
"Endpoint": "{Endpoint}",
"body": {
"keywords": "exampledata",
"filter": {
"and": [
{
"objectType": "Files"
},
{
"entityType": "azure_blob_path"
}
]
},
"limit": 10,
"orderby": [
{
"name": "ASC"
},
{
"updateTime": "DESC"
}
],
"facets": [
{
"facet": "assetType",
"count": 0,
"sort": {
"count": "desc"
}
},
{
"facet": "classification",
"count": 10,
"sort": {
"count": "desc"
}
},
{
"facet": "contactId",
"count": 10,
"sort": {
"count": "desc"
}
},
{
"facet": "label",
"count": 10,
"sort": {
"count": "desc"
}
},
{
"facet": "term",
"count": 10,
"sort": {
"count": "desc"
}
}
]
},
"api-version": "2023-09-01"
},
"responses": {
"200": {
"body": {
"@search.count": 2,
"@search.count.approximate": false,
"value": [
{
"@search.score": 1.0,
"id": "bfecbcc3-1838-45fe-96d6-112de8a170f9",
"qualifiedName": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata1.txt",
"name": "exampledata1.txt",
"description": null,
"owner": null,
"entityType": "azure_blob_path",
"classification": [],
"label": [],
"assetType": [
"Azure Blob Storage"
],
"term": [],
"contact": []
},
{
"@search.score": 1.0,
"id": "14d857b9-e2c1-4118-8bfa-12e53ae6ce7f",
"qualifiedName": "https://exampleaccount.blob.core.windows.net/examplepath/exampledata2.txt",
"name": "exampledata2.txt",
"description": null,
"owner": null,
"entityType": "azure_blob_path",
"classification": [],
"label": [],
"assetType": [
"Azure Blob Storage"
],
"term": [],
"contact": []
}
]
}
}
},
"title": "Discovery_Query",
"operationId": "Discovery_Query"
}
Loading