Show / Hide Table of Contents

Class V1ObjectReference

ObjectReference contains enough information to let you inspect or modify the referred object.

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

Constructors

View Source

V1ObjectReference()

Declaration
public V1ObjectReference()
View Source

V1ObjectReference(V1ObjectReference)

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

Properties

View Source

ApiVersion

API version of the referent.

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

EqualityContract

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

FieldPath

If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: "spec.containers{name}" (where "name" refers to the name of the container that triggered the event) or if no container name is specified "spec.containers[2]" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.

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

Kind

Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

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

Name

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

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

NamespaceProperty

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

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

ResourceVersion

Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency

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

Uid

UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids

Declaration
[JsonPropertyName("uid")]
public string Uid { 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(V1ObjectReference?)

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

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

operator !=(V1ObjectReference?, V1ObjectReference?)

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

Implements

IEquatable<T>

Extension Methods

ModelExtensions.Matches(V1ObjectReference, IKubernetesObject<V1ObjectMeta>)
  • View Source
In this article
Back to top Generated by DocFX