Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kubernetes_apis/builtin/policy@v1/mod.ts>PolicyV1NamespacedApi

REST focused Typescript classes for Kubernetes APIs, and tools for generating API interfaces
Go to Latest
class PolicyV1NamespacedApi
import { PolicyV1NamespacedApi } from "https://deno.land/x/kubernetes_apis@v0.5.1/builtin/policy@v1/mod.ts";

Constructors

new
PolicyV1NamespacedApi(client: c.RestClient, namespace: string)

Methods

createPodDisruptionBudget(body: PolicyV1.PodDisruptionBudget, opts?: operations.PutOpts): Promise<PolicyV1.PodDisruptionBudget>
deletePodDisruptionBudget(name: string, opts?: operations.DeleteOpts): Promise<PolicyV1.PodDisruptionBudget | MetaV1.Status>
deletePodDisruptionBudgetList(opts?: operations.DeleteListOpts): Promise<PolicyV1.PodDisruptionBudgetList>
getPodDisruptionBudget(name: string, opts?: operations.NoOpts): Promise<PolicyV1.PodDisruptionBudget>
getPodDisruptionBudgetList(opts?: operations.GetListOpts): Promise<PolicyV1.PodDisruptionBudgetList>
getPodDisruptionBudgetStatus(name: string, opts?: operations.NoOpts): Promise<PolicyV1.PodDisruptionBudget>
patchPodDisruptionBudget(
name: string,
type: c.PatchType,
body: PolicyV1.PodDisruptionBudget | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<PolicyV1.PodDisruptionBudget>
patchPodDisruptionBudgetStatus(
name: string,
type: c.PatchType,
body: PolicyV1.PodDisruptionBudget | c.JsonPatch,
opts?: operations.PatchOpts,
): Promise<PolicyV1.PodDisruptionBudget>
replacePodDisruptionBudget(
name: string,
body: PolicyV1.PodDisruptionBudget,
opts?: operations.PutOpts,
): Promise<PolicyV1.PodDisruptionBudget>
replacePodDisruptionBudgetStatus(
name: string,
body: PolicyV1.PodDisruptionBudget,
opts?: operations.PutOpts,
): Promise<PolicyV1.PodDisruptionBudget>
watchPodDisruptionBudgetList(opts?: operations.WatchListOpts): Promise<c.WatchEventStream<PolicyV1.PodDisruptionBudget>>