Class V1ObjectReference
ObjectReference contains enough information to let you inspect or modify the
referred object.
Inheritance
V1ObjectReference
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
Properties
View Source
ApiVersion
API version of the referent.
Declaration
[JsonPropertyName("apiVersion")]
public string ApiVersion { get; set; }
Property Value
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
View Source
Kind
Declaration
[JsonPropertyName("kind")]
public string Kind { get; set; }
Property Value
View Source
Name
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
View Source
NamespaceProperty
Declaration
[JsonPropertyName("namespace")]
public string NamespaceProperty { get; set; }
Property Value
View Source
ResourceVersion
Declaration
[JsonPropertyName("resourceVersion")]
public string ResourceVersion { get; set; }
Property Value
View Source
Uid
Declaration
[JsonPropertyName("uid")]
public string Uid { 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(V1ObjectReference?)
Declaration
public virtual bool Equals(V1ObjectReference? 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 ==(V1ObjectReference?, V1ObjectReference?)
Declaration
public static bool operator ==(V1ObjectReference? left, V1ObjectReference? right)
Parameters
Returns
View Source
operator !=(V1ObjectReference?, V1ObjectReference?)
Declaration
public static bool operator !=(V1ObjectReference? left, V1ObjectReference? right)
Parameters
Returns
Implements
Extension Methods