OwnerReference constructor

const OwnerReference({
  1. required Input<String> apiVersion,
  2. Input<bool>? blockOwnerDeletion,
  3. Input<bool>? controller,
  4. required Input<String> kind,
  5. required Input<String> name,
  6. required Input<String> uid,
})

Creates a new OwnerReference. apiVersion API version of the referent. 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. controller If true, this reference points to the managing controller. kind Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds name Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names uid UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids

Implementation

const OwnerReference({
  required this.apiVersion,
  this.blockOwnerDeletion,
  this.controller,
  required this.kind,
  required this.name,
  required this.uid,
});