Class V1ContainerRestartRule
ContainerRestartRule describes how a container exit is handled.
Inheritance
V1ContainerRestartRule
Assembly: KubernetesClient.dll
Syntax
public record V1ContainerRestartRule : IEquatable<V1ContainerRestartRule>
Constructors
View Source
V1ContainerRestartRule()
Declaration
public V1ContainerRestartRule()
View Source
V1ContainerRestartRule(V1ContainerRestartRule)
Declaration
protected V1ContainerRestartRule(V1ContainerRestartRule original)
Parameters
Properties
View Source
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
ExitCodes
Represents the exit codes to check on container exits.
Declaration
[JsonPropertyName("exitCodes")]
public V1ContainerRestartRuleOnExitCodes ExitCodes { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1ContainerRestartRule?)
Declaration
public virtual bool Equals(V1ContainerRestartRule? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1ContainerRestartRule?, V1ContainerRestartRule?)
Declaration
public static bool operator ==(V1ContainerRestartRule? left, V1ContainerRestartRule? right)
Parameters
Returns
View Source
operator !=(V1ContainerRestartRule?, V1ContainerRestartRule?)
Declaration
public static bool operator !=(V1ContainerRestartRule? left, V1ContainerRestartRule? right)
Parameters
Returns
Implements