Azure.IoT.ModelsRepository
1.0.0-preview.6
Prefix Reserved
dotnet add package Azure.IoT.ModelsRepository --version 1.0.0-preview.6
NuGet\Install-Package Azure.IoT.ModelsRepository -Version 1.0.0-preview.6
<PackageReference Include="Azure.IoT.ModelsRepository" Version="1.0.0-preview.6" />
paket add Azure.IoT.ModelsRepository --version 1.0.0-preview.6
#r "nuget: Azure.IoT.ModelsRepository, 1.0.0-preview.6"
// Install Azure.IoT.ModelsRepository as a Cake Addin #addin nuget:?package=Azure.IoT.ModelsRepository&version=1.0.0-preview.6&prerelease // Install Azure.IoT.ModelsRepository as a Cake Tool #tool nuget:?package=Azure.IoT.ModelsRepository&version=1.0.0-preview.6&prerelease
Azure IoT Models Repository client library for .NET
This library provides functionality for interacting with the Azure IoT Models Repository. It also aims to provide a consistent experience working with digital twin model repositories following Azure IoT conventions.
Getting started
The complete Microsoft Azure SDK can be downloaded from the Microsoft Azure downloads page, and it ships with support for building deployment packages, integrating with tooling, rich command-line tooling, and more.
For the best development experience, developers should use the official Microsoft NuGet packages for libraries. NuGet packages are regularly updated with new functionality and bug fixes.
Install the package
Install the Azure IoT Models Repository client library for .NET with NuGet:
dotnet add package Azure.IoT.ModelsRepository --prerelease
View the package details at nuget.org.
Prerequisites
- A models repository following Azure IoT conventions
- The models repository can be located on the local filesystem or hosted on a webserver.
- Azure IoT hosts the global Azure IoT Models Repository which the client will point to by default if no URI is provided.
Authenticate the client
Currently no authentication mechanisms are supported in the client. The global endpoint is not tied to an Azure subscription and does not support auth. All models published are meant for anonymous public consumption.
Key concepts
The Azure IoT Models Repository enables builders to manage and share digital twin models. The models are JSON-LD documents defined using the Digital Twins Definition Language (DTDL).
The repository defines a pattern to store DTDL interfaces in a directory structure based on the Digital Twin Model Identifier (DTMI). You can locate an interface in the repository by converting the DTMI to a relative path. For example, the DTMI "dtmi:com:example:Thermostat;1
" translates to /dtmi/com/example/thermostat-1.json
.
Thread safety
We guarantee that all client instance methods are thread-safe and independent of each other. See thread safety guideline. This ensures that the recommendation of reusing client instances is always safe, even across threads.
Additional concepts
Client options | Accessing the response | Long-running operations | Handling failures | Diagnostics | Mocking | Client lifetime
Examples
You can familiarize yourself with the client using samples for IoT Models Repository.
Troubleshooting
All service operations will throw RequestFailedException on failure, with helpful error codes and other information. The client also produces diagnostic events and logging which can be listened to with an EventListener.
Next steps
See implementation examples with our code samples.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Azure.Core (>= 1.39.0)
- System.Text.Encodings.Web (>= 4.7.2)
- System.Text.Json (>= 4.7.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-preview.6 | 1,774 | 4/22/2024 |
1.0.0-preview.5 | 15,031 | 11/4/2021 |
1.0.0-preview.4 | 608 | 7/23/2021 |
1.0.0-preview.3 | 2,137 | 4/12/2021 |
1.0.0-preview.2 | 381 | 3/31/2021 |
1.0.0-preview.1 | 40,094 | 3/10/2021 |