-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David R. Williamson
committed
Feb 21, 2023
1 parent
bfc6f74
commit b6f9a5d
Showing
4 changed files
with
43 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
iothub/service/samples/how to guides/CleanupDevicesSample/ImportError.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
using Newtonsoft.Json; | ||
|
||
namespace Microsoft.Azure.Devices | ||
{ | ||
/// <summary> | ||
/// Useful for deserializing errors that occur from a bulk import job. | ||
/// </summary> | ||
/// <remarks> | ||
/// Any errors that occur during a bulk import job can be deserialized with this class from a blob file named "importErrors.log" | ||
/// in the container specified during import. | ||
/// </remarks> | ||
public class ImportJobError | ||
{ | ||
/// <summary> | ||
/// The name of the blob file that contains the import errors. | ||
/// </summary> | ||
public const string ImportErrorsBlobName = "importErrors.log"; | ||
|
||
/// <summary> | ||
/// The Id of the device for the error. | ||
/// </summary> | ||
[JsonProperty("deviceId")] | ||
public string DeviceId { get; set; } | ||
|
||
/// <summary> | ||
/// An error code for the device import. | ||
/// </summary> | ||
[JsonProperty("errorCode")] | ||
public string ErrorCode { get; set; } | ||
|
||
/// <summary> | ||
/// A textual reason for the error. | ||
/// </summary> | ||
[JsonProperty("errorStatus")] | ||
public string ErrorStatus { get; set; } | ||
} | ||
} |