-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Cherry-pick 550dc0d.
- Loading branch information
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
14 changes: 9 additions & 5 deletions
14
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Docker/models/RestartPolicyKind.cs
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 |
---|---|---|
@@ -1,23 +1,27 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
namespace Microsoft.Azure.Devices.Edge.Agent.Docker.Models | ||
{ | ||
using System.Runtime.Serialization; | ||
|
||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum RestartPolicyKind | ||
{ | ||
[JsonProperty("")] | ||
[EnumMember(Value ="")] | ||
Undefined, | ||
|
||
[JsonProperty("no")] | ||
[EnumMember(Value = "no")] | ||
No, | ||
|
||
[JsonProperty("always")] | ||
[EnumMember(Value = "always")] | ||
Always, | ||
|
||
[JsonProperty("on-failure")] | ||
[EnumMember(Value = "on-failure")] | ||
OnFailure, | ||
|
||
[JsonProperty("unless-stopped")] | ||
[EnumMember(Value = "unless-stopped")] | ||
UnlessStopped | ||
} | ||
} |
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