Class V1ContainerRestartRule
ContainerRestartRule describes how a container exit is handled.
Inheritance
V1ContainerRestartRule
Assembly: KubernetesClient.dll
Syntax
public record V1ContainerRestartRule : IEquatable<V1ContainerRestartRule>
Constructors
V1ContainerRestartRule()
Declaration
public V1ContainerRestartRule()
V1ContainerRestartRule(V1ContainerRestartRule)
Declaration
protected V1ContainerRestartRule(V1ContainerRestartRule original)
Parameters
Properties
Action
Specifies the action taken on a container exit if the requirements are
satisfied. The only possible value is "Restart" to restart the container.
Declaration
[JsonPropertyName("action")]
public string Action { get; set; }
Property Value
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
ExitCodes
Represents the exit codes to check on container exits.
Declaration
[JsonPropertyName("exitCodes")]
public V1ContainerRestartRuleOnExitCodes ExitCodes { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1ContainerRestartRule?)
Declaration
public virtual bool Equals(V1ContainerRestartRule? other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
operator ==(V1ContainerRestartRule?, V1ContainerRestartRule?)
Declaration
public static bool operator ==(V1ContainerRestartRule? left, V1ContainerRestartRule? right)
Parameters
Returns
operator !=(V1ContainerRestartRule?, V1ContainerRestartRule?)
Declaration
public static bool operator !=(V1ContainerRestartRule? left, V1ContainerRestartRule? right)
Parameters
Returns
Implements