sdk/purview/Azure.Analytics.Purview.Catalog/src/autorest.md
Run dotnet build /t:GenerateCode to generate code.
title: PurviewCatalog
input-file:
- https://github.com/Azure/azure-rest-api-specs/blob/ccbe894f6b012ca2000184307ed453fd68797b86/specification/purview/data-plane/Azure.Analytics.Purview.Catalog/preview/2022-03-01-preview/purviewcatalog.json
namespace: Azure.Analytics.Purview.Catalog
security: AADToken
security-scopes: https://purview.azure.net/.default
directive:
- from: swagger-document
where: $.parameters.Endpoint
transform: >
if ($.format === undefined) {
$.format = "url";
}
directive:
- rename-operation:
from: Collection_CreateOrUpdate
to: Collection_CreateOrUpdateEntity
- rename-operation:
from: Collection_CreateOrUpdateBulk
to: Collection_CreateOrUpdateEntityInBulk
directive:
- from: swagger-document
where: $..[?(@.operationId !== undefined)]
transform: >
if ($.operationId.startsWith("Discovery_")) {
$.operationId = $.operationId.replace("Discovery_", "");
}
directive:
- from: swagger-document
where: $..[?(@.operationId === "Query")]
transform: >
$.operationId = "Search";
Purview To Sub Clientsdirective:
- from: swagger-document
where: $..[?(@.operationId !== undefined)]
transform: >
if ($.operationId.includes("_")) {
$.operationId = "Purview" + $.operationId;
}
directive:
- from: swagger-document
where: $..[?(@.operationId !== undefined)]
transform: >
$.operationId = $.operationId.replace("_List", "_Get");