Show / Hide Table of Contents

Class V1Variable

Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.

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

Constructors

View Source

V1Variable()

Declaration
public V1Variable()
View Source

V1Variable(V1Variable)

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

Properties

View Source

EqualityContract

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

Expression

Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.

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

Name

Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through variables For example, if name is "foo", the variable will be available as variables.foo

Declaration
[JsonPropertyName("name")]
public string Name { 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(V1Variable?)

Declaration
public virtual bool Equals(V1Variable? other)
Parameters
Type Name Description
V1Variable 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 ==(V1Variable?, V1Variable?)

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

operator !=(V1Variable?, V1Variable?)

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

Implements

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