Skip to content

Commit

Permalink
swagger(iothub): Adding overrides for type names (#12026)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinagesh committed Jun 9, 2020
1 parent b32015d commit 5ad5294
Show file tree
Hide file tree
Showing 53 changed files with 2,842 additions and 2,699 deletions.
14 changes: 14 additions & 0 deletions sdk/iot/Azure.Iot.Hub.Service/src/API Design.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Azure Iot Hub Service API Design Doc
This document outlines the APIs for the Azure Iot Hub Service SDK

<details><summary><b>Type definition names</b></summary>

```
Configuration - TwinConfiguration
Module - ModuleIdentity
Device - DeviceIdentity
Twin - TwinData
Interface - PnpInterface
Property - PnpProperty
Reported - PnpReported
Desired - PnpDesired
```
</details>

<details><summary><b>Constructors</b></summary>

```csharp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// Device identity.
/// </summary>
[CodeGenModel("Device")]
public partial class DeviceIdentity
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// Module identity.
/// </summary>
[CodeGenModel("Module")]
public partial class ModuleIdentity
{
}
}
15 changes: 15 additions & 0 deletions sdk/iot/Azure.Iot.Hub.Service/src/Customized/Models/PnPDesired.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// The desired property of a digital twin.
/// </summary>
[CodeGenModel("Desired")]
internal partial class PnpDesired
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// The digital twin interface which defines all the properties.
/// </summary>
[CodeGenModel("Interface")]
internal partial class PnpInterface
{
}
}
15 changes: 15 additions & 0 deletions sdk/iot/Azure.Iot.Hub.Service/src/Customized/Models/PnpProperty.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// The property of a digital twin. This consists of both the Desired and Reported property.
/// </summary>
[CodeGenModel("Property")]
internal partial class PnpProperty
{
}
}
15 changes: 15 additions & 0 deletions sdk/iot/Azure.Iot.Hub.Service/src/Customized/Models/PnpReported.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// The reported property of a digital twin.
/// </summary>
[CodeGenModel("Reported")]
internal partial class PnpReported
{
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// Configuration for automatic device and module management.
/// </summary>
[CodeGenModel("Configuration")]
public partial class TwinConfiguration
{
}
}
15 changes: 15 additions & 0 deletions sdk/iot/Azure.Iot.Hub.Service/src/Customized/Models/TwinData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Azure.Core;

namespace Azure.Iot.Hub.Service.Models
{
/// <summary>
/// Twin data.
/// </summary>
[CodeGenModel("Twin")]
public partial class TwinData
{
}
}

Large diffs are not rendered by default.

Loading

0 comments on commit 5ad5294

Please sign in to comment.