Show / Hide Table of Contents

Class V1OwnerReference

OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.

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

Constructors

View Source

V1OwnerReference()

Declaration
public V1OwnerReference()
View Source

V1OwnerReference(V1OwnerReference)

Declaration
protected V1OwnerReference(V1OwnerReference original)
Parameters
Type Name Description
V1OwnerReference 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

BlockOwnerDeletion

If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.

Declaration
[JsonPropertyName("blockOwnerDeletion")]
public bool? BlockOwnerDeletion { get; set; }
Property Value
Type Description
bool?
View Source

Controller

If true, this reference points to the managing controller.

Declaration
[JsonPropertyName("controller")]
public bool? Controller { get; set; }
Property Value
Type Description
bool?
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
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

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(V1OwnerReference?)

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

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

operator !=(V1OwnerReference?, V1OwnerReference?)

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

Implements

IEquatable<T>

Extension Methods

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