def PatchKind.content_type

bend-kube-runtime@0.2.0.0 · src/core.bend:207

import bend-kube-runtime@0.2.0.0/src/core.bend as Core
import Base

207def PatchKind.content_type(p: PatchKind) -> String:
208  match p:
209    case PMerge{}:
210      "application/merge-patch+json"
211    case PJson{}:
212      "application/json-patch+json"
213    case PStrategic{}:
214      "application/strategic-merge-patch+json"
215    case PApply{m, f}:
216      "application/apply-patch+yaml"

Uses (2)

Used by (1)