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

V1OwnerReference()

Declaration
public V1OwnerReference()

V1OwnerReference(V1OwnerReference)

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

Properties

ApiVersion

API version of the referent.

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

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?

Controller

If true, this reference points to the managing controller.

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

EqualityContract

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

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

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

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

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1OwnerReference?)

Declaration
public virtual bool Equals(V1OwnerReference? other)
Parameters
Type Name Description
V1OwnerReference other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1OwnerReference?, V1OwnerReference?)

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

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>)
In this article
Back to top Generated by DocFX