Class V1HostAlias
HostAlias holds the mapping between IP and hostnames that will be injected as an
entry in the pod's hosts file.
Assembly: KubernetesClient.dll
Syntax
public record V1HostAlias : IEquatable<V1HostAlias>
Constructors
V1HostAlias()
Declaration
V1HostAlias(V1HostAlias)
Declaration
protected V1HostAlias(V1HostAlias original)
Parameters
Properties
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
Hostnames
Hostnames for the above IP address.
Declaration
[JsonPropertyName("hostnames")]
public IList<string> Hostnames { get; set; }
Property Value
Ip
IP address of the host file entry.
Declaration
[JsonPropertyName("ip")]
public string Ip { get; set; }
Property Value
Methods
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(V1HostAlias?)
Declaration
public virtual bool Equals(V1HostAlias? 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 ==(V1HostAlias?, V1HostAlias?)
Declaration
public static bool operator ==(V1HostAlias? left, V1HostAlias? right)
Parameters
Returns
operator !=(V1HostAlias?, V1HostAlias?)
Declaration
public static bool operator !=(V1HostAlias? left, V1HostAlias? right)
Parameters
Returns
Implements