Skip to content

Latest commit

 

History

History
168 lines (120 loc) · 4.06 KB

File metadata and controls

168 lines (120 loc) · 4.06 KB

Purview

see https://aka.ms/autorest

This is the AutoRest configuration file for Purview.


Getting Started

To build the SDK for Purview, simply Install AutoRest and in this folder, run:

autorest

To see additional help and options, run:

autorest --help


Configuration

Basic Information

These are the global settings for the Azure Purview Catalog API.

openapi-type: data-plane
tag: package-2021-09-01

Tag: package-2021-05-01-preview

These settings apply only when --tag=package-2021-05-01-preview is specified on the command line.

input-file:
- Azure.Analytics.Purview.Catalog/preview/2021-05-01-preview/purviewcatalog.json

Tag: package-2021-09-01

These settings apply only when --tag=package-2021-09-01 is specified on the command line.

input-file:
- Azure.Analytics.Purview.Catalog/preview/2021-09-01/purviewcatalog.json

These are the global settings for the Purview API.

openapi-type: data-plane
tag: package-2018-12-01-preview
title: PurviewScanningClient

Tag: package-2018-12-01-preview

These settings apply only when --tag=package-2018-12-01-preview is specified on the command line.

input-file:
- Azure.Analytics.Purview.Scanning/preview/2018-12-01-preview/scanningService.json
modelerfour:
  lenient-model-deduplication: true

These are the global settings for the Purview API.

openapi-type: data-plane
tag: package-2021-07-01
title: PurviewMetadataPolicyClient

Tag: package-2021-07-01

These settings apply only when --tag=package-2021-07-01 is specified on the command line.

input-file:
- Azure.Analytics.Purview.MetadataPolicies/preview/2021-07-01/purviewMetadataPolicy.json
modelerfour:
  lenient-model-deduplication: true

Code Generation

C#

These settings apply only when --csharp is specified on the command line. Please also specify --csharp-sdks-folder=<path to "SDKs" directory of your azure-sdk-for-net clone>.

csharp:
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Purview.CatalogClient
  add-credentials: true
  output-folder: $(csharp-sdks-folder)/purview/Microsoft.Azure.Analytics.Purview.Catalog/src/Generated
  clear-output-folder: true

Java

These settings apply only when --java is specified on the command line. Please also specify --azure-libraries-for-java-folder=<path to the root directory of your azure-libraries-for-java clone>.

java:
  license-header: MICROSOFT_MIT_NO_VERSION
  namespace: Microsoft.Azure.Purview.CatalogClient
  add-credentials: true
  output-folder: $(azure-libraries-for-java-folder)/purview/Microsoft.Azure.Analytics.Purview.Catalog/src/Generated
  clear-output-folder: true
output-folder: $(csharp-sdks-folder)/Purview/ScanningClient/Generated
add-credentials: true
sync-methods: all
license-header: MICROSOFT_MIT_NO_VERSION
namespace: Azure.Analytics.Purview.Scanning
clear-output-folder: true

Python

See configuration in readme.python.md

Suppression

directive:
  - suppress: R3013
where:
  - $.paths[\"/atlas/v2/glossary/terms/{termGuid}/assignedEntities\"].delete.parameters[1]
  - $.paths[\"/atlas/v2/types/typedefs\"].delete.parameters[0]
from: purviewcatalog.json
reason:  This property is the discriminator for polymorph, but it can not be in request body.
directive:
  - suppress: R2026
from: purviewcatalog.json
reason: Should be compatible with Atlas swagger.
directive:
  - suppress: D5001
where:
  - $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/xxx.get
reason: It doesn't support file annotation in example file.

Code Generation

Swagger to SDK

This section describes what SDK should be generated by the automatic system. This is not used by Autorest itself.

swagger-to-sdk:
  - repo: azure-sdk-for-net-track2