/azure-notificationhubs-cadl

Azure Notification Hubs CADL Workspace

Primary LanguagePythonMIT LicenseMIT

Azure Notification Hubs CADL Generator

This is the repository to create a CADL representation of Azure Notification Hubs.

This builds for the following emitters:

  • C#
  • Java
  • OpenAPI3
  • Python
  • TypeScript

C# Support

To build the C# library, run the following command:

npm run build:csharp

This will build the cadl-output/csharp/cadl.json file, which used with the Configuration.json, will build the C# SDK.

NOTE This uses the autorest.csharp CADL extension directly instead from npm. See instructions in the C# CADL Extension project.

Building the C# SDK using AutoRest.CSharp looks like the following:

~/git/autorest.csharp/artifacts/bin/AutoRest.CSharp/Debug/netcoreapp3.1/AutoRest.CSharp --standalone cadl-output/csharp/

Java Support

To build the Java library, run the following command:

npm run build:java

This will build the Java project in the cadl-output/java directory

NOTE This uses the autorest.java CADL extension directly instead from npm. See instructions in the cadl-extension project.

OpenAPI3 Support

To build the OpenAPI version 3 JSON file, run the following command:

npm run build:openapi3

This will build the cadl-output/openapi3/openapi.json file.

Python Support

To build the Python library, run the following command:

npm run build:python

This will build the notificationhubs project in the cadl-output/python directory.

TypeScript Support

To build the TypeScript Rest Level Client (RLC), run the following command:

npm run build:ts

NOTE This uses the autorest.typescript CADL extension directly instead from npm. See the cadl-rlc-emitter package for CADL RLC generation.

LICENSE

MIT