From 5e59860c4670e8f2973a843691427d08e89e45a7 Mon Sep 17 00:00:00 2001 From: timtay-microsoft Date: Tue, 28 Apr 2020 13:49:27 -0700 Subject: [PATCH] Add Iot Hub API categories to design doc (#11649) --- .../Azure.Iot.Hub.Service/src/API Design.md | 84 ++++++++++++++++--- 1 file changed, 73 insertions(+), 11 deletions(-) diff --git a/sdk/iot/Azure.Iot.Hub.Service/src/API Design.md b/sdk/iot/Azure.Iot.Hub.Service/src/API Design.md index 8c0e4dbc332b..0893928c1ed6 100644 --- a/sdk/iot/Azure.Iot.Hub.Service/src/API Design.md +++ b/sdk/iot/Azure.Iot.Hub.Service/src/API Design.md @@ -1,24 +1,86 @@ - +# Azure Iot Hub Service API Design Doc +This document outlines the APIs for the Azure Iot Hub Service SDK +
Constructors + +```csharp +``` +
-# Azure Iot Hub Service API Design Doc -This document outlines the APIs for the Azure Iot Hub Service SDK +
Configurations +APIs for managing configurations for devices and modules +```csharp -## Azure.Core usage -Within this SDK, we will make use of several Azure.Core library classes +``` +
-[AsyncPageable\](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/AsyncPageable.cs): An enumerable set of items that are retrieved asynchronously over multiple http requests +
Statistics +APIs for getting statistics about devices and modules, as well as service statistics +```csharp -[Pageable\](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/Pageable.cs): An enumerable set of items that are retrieved synchronously over multiple http requests +``` +
-[Page\](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/Page.cs): A single page within a Pageable. Should not be exposed to the user, since we strive to abstract out the pagination +
Registry +APIs for managing device and module identities +```csharp -[Response](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/Response.cs): Contains the raw HTTP response details +``` +
+ +
Jobs +APIs for using IotHub jobs +```csharp + +``` +
+ +
V2 Jobs +(maybe combine with job APIs, or maybe don't expose v1 job APIs. Talk with service about this) + +```csharp + +``` +
-[Response\](https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core/src/Response%7BT%7D.cs): Contains a Response instance and a parsed type derived from that HTTP response (for instance, Response\ when retrieving models) -
Sample +
Twin +Device and module twin operations +```csharp + +``` +
+ +
Methods +Device and module direct methods +```csharp + +``` +
+ +
Cloud to Device Messaging +No sign of this in the swagger +```csharp + +``` +
+ +
Feedback Message +APIs for getting feedback messages +```csharp + +``` +
+ +
File Upload Notifications +No sign of this in the swagger +```csharp + +``` +
+
Query +APIs for querying on device or module identities ```csharp ```