def Api.path
import bend-kube-runtime@0.2.0.0/src/core.bend as Coreimport Base
101# The collection's path, as kube-core's url_path: /api/v1/namespaces/x/pods.
102def Api.path(a: Api) -> String:
103 match a:
104 case Api{Res{+g, v, k, p, n}, s}:
105 Api.prefix(g, v, String.is_empty(g)) ++ Api.ns_part(s, n) ++ "/" ++ p