Show / Hide Table of Contents

Class V1StatusCause

StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.

Inheritance
object
V1StatusCause
Implements
IEquatable<V1StatusCause>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1StatusCause : IEquatable<V1StatusCause>

Constructors

View Source

V1StatusCause()

Declaration
public V1StatusCause()
View Source

V1StatusCause(V1StatusCause)

Declaration
protected V1StatusCause(V1StatusCause original)
Parameters
Type Name Description
V1StatusCause original

Properties

View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Field

The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.

Examples: "name" - the field "name" on the current resource "items[0].name" - the field "name" on the first array entry in "items"

Declaration
[JsonPropertyName("field")]
public string Field { get; set; }
Property Value
Type Description
string
View Source

Message

A human-readable description of the cause of the error. This field may be presented as-is to a reader.

Declaration
[JsonPropertyName("message")]
public string Message { get; set; }
Property Value
Type Description
string
View Source

Reason

A machine-readable description of the cause of the error. If this value is empty there is no information available.

Declaration
[JsonPropertyName("reason")]
public string Reason { get; set; }
Property Value
Type Description
string

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1StatusCause?)

Declaration
public virtual bool Equals(V1StatusCause? other)
Parameters
Type Name Description
V1StatusCause other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1StatusCause?, V1StatusCause?)

Declaration
public static bool operator ==(V1StatusCause? left, V1StatusCause? right)
Parameters
Type Name Description
V1StatusCause left
V1StatusCause right
Returns
Type Description
bool
View Source

operator !=(V1StatusCause?, V1StatusCause?)

Declaration
public static bool operator !=(V1StatusCause? left, V1StatusCause? right)
Parameters
Type Name Description
V1StatusCause left
V1StatusCause right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX