| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | namespace Azure.Iot.Hub.Service.Models |
| | 9 | | { |
| | 10 | | /// <summary> The device registry operation error details. </summary> |
| | 11 | | public partial class DeviceRegistryOperationError |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of DeviceRegistryOperationError. </summary> |
| 0 | 14 | | internal DeviceRegistryOperationError() |
| | 15 | | { |
| 0 | 16 | | } |
| | 17 | |
|
| | 18 | | /// <summary> Initializes a new instance of DeviceRegistryOperationError. </summary> |
| | 19 | | /// <param name="deviceId"> The unique identifier of the device. </param> |
| | 20 | | /// <param name="errorCode"> The error code. </param> |
| | 21 | | /// <param name="errorStatus"> The details of the error. </param> |
| | 22 | | /// <param name="moduleId"> The unique identifier of the module, if applicable. </param> |
| | 23 | | /// <param name="operation"> The type of the operation that failed. </param> |
| 0 | 24 | | internal DeviceRegistryOperationError(string deviceId, DeviceRegistryOperationErrorCode? errorCode, string error |
| | 25 | | { |
| 0 | 26 | | DeviceId = deviceId; |
| 0 | 27 | | ErrorCode = errorCode; |
| 0 | 28 | | ErrorStatus = errorStatus; |
| 0 | 29 | | ModuleId = moduleId; |
| 0 | 30 | | Operation = operation; |
| 0 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> The unique identifier of the device. </summary> |
| 0 | 34 | | public string DeviceId { get; } |
| | 35 | | /// <summary> The error code. </summary> |
| 0 | 36 | | public DeviceRegistryOperationErrorCode? ErrorCode { get; } |
| | 37 | | /// <summary> The details of the error. </summary> |
| 0 | 38 | | public string ErrorStatus { get; } |
| | 39 | | /// <summary> The unique identifier of the module, if applicable. </summary> |
| 0 | 40 | | public string ModuleId { get; } |
| | 41 | | /// <summary> The type of the operation that failed. </summary> |
| 0 | 42 | | public string Operation { get; } |
| | 43 | | } |
| | 44 | | } |