[][src]Struct k8s_openapi::api::policy::v1beta1::PodDisruptionBudget

pub struct PodDisruptionBudget {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<PodDisruptionBudgetSpec>,
    pub status: Option<PodDisruptionBudgetStatus>,
}

PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods

Fields

metadata: Option<ObjectMeta>spec: Option<PodDisruptionBudgetSpec>

Specification of the desired behavior of the PodDisruptionBudget.

status: Option<PodDisruptionBudgetStatus>

Most recently observed status of the PodDisruptionBudget.

Methods

impl PodDisruptionBudget[src]

pub fn create_namespaced_pod_disruption_budget(
    namespace: &str,
    body: &PodDisruptionBudget,
    optional: CreateNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

create a PodDisruptionBudget

Use the returned crate::ResponseBody<CreateNamespacedPodDisruptionBudgetResponse> constructor, or CreateNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn delete_collection_namespaced_pod_disruption_budget(
    namespace: &str,
    optional: DeleteCollectionNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

delete collection of PodDisruptionBudget

Use the returned crate::ResponseBody<DeleteCollectionNamespacedPodDisruptionBudgetResponse> constructor, or DeleteCollectionNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn delete_namespaced_pod_disruption_budget(
    name: &str,
    namespace: &str,
    optional: DeleteNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

delete a PodDisruptionBudget

Use the returned crate::ResponseBody<DeleteNamespacedPodDisruptionBudgetResponse> constructor, or DeleteNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the PodDisruptionBudget

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn list_namespaced_pod_disruption_budget(
    namespace: &str,
    optional: ListNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

list or watch objects of kind PodDisruptionBudget

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListNamespacedPodDisruptionBudgetResponse> constructor, or ListNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn list_pod_disruption_budget_for_all_namespaces(
    optional: ListPodDisruptionBudgetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodDisruptionBudgetForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind PodDisruptionBudget

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListPodDisruptionBudgetForAllNamespacesResponse> constructor, or ListPodDisruptionBudgetForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn patch_namespaced_pod_disruption_budget(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

partially update the specified PodDisruptionBudget

Use the returned crate::ResponseBody<PatchNamespacedPodDisruptionBudgetResponse> constructor, or PatchNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the PodDisruptionBudget

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn patch_namespaced_pod_disruption_budget_status(
    name: &str,
    namespace: &str,
    body: &Patch,
    optional: PatchNamespacedPodDisruptionBudgetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedPodDisruptionBudgetStatusResponse>), RequestError>
[src]

partially update status of the specified PodDisruptionBudget

Use the returned crate::ResponseBody<PatchNamespacedPodDisruptionBudgetStatusResponse> constructor, or PatchNamespacedPodDisruptionBudgetStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the PodDisruptionBudget

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn read_namespaced_pod_disruption_budget(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

read the specified PodDisruptionBudget

Use the returned crate::ResponseBody<ReadNamespacedPodDisruptionBudgetResponse> constructor, or ReadNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the PodDisruptionBudget

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn read_namespaced_pod_disruption_budget_status(
    name: &str,
    namespace: &str,
    optional: ReadNamespacedPodDisruptionBudgetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedPodDisruptionBudgetStatusResponse>), RequestError>
[src]

read status of the specified PodDisruptionBudget

Use the returned crate::ResponseBody<ReadNamespacedPodDisruptionBudgetStatusResponse> constructor, or ReadNamespacedPodDisruptionBudgetStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the PodDisruptionBudget

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn replace_namespaced_pod_disruption_budget(
    name: &str,
    namespace: &str,
    body: &PodDisruptionBudget,
    optional: ReplaceNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

replace the specified PodDisruptionBudget

Use the returned crate::ResponseBody<ReplaceNamespacedPodDisruptionBudgetResponse> constructor, or ReplaceNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the PodDisruptionBudget

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn replace_namespaced_pod_disruption_budget_status(
    name: &str,
    namespace: &str,
    body: &PodDisruptionBudget,
    optional: ReplaceNamespacedPodDisruptionBudgetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodDisruptionBudgetStatusResponse>), RequestError>
[src]

replace status of the specified PodDisruptionBudget

Use the returned crate::ResponseBody<ReplaceNamespacedPodDisruptionBudgetStatusResponse> constructor, or ReplaceNamespacedPodDisruptionBudgetStatusResponse directly, to parse the HTTP response.

Arguments

  • name

    name of the PodDisruptionBudget

  • namespace

    object name and auth scope, such as for teams and projects

  • body

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn watch_namespaced_pod_disruption_budget(
    namespace: &str,
    optional: WatchNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedPodDisruptionBudgetResponse>), RequestError>
[src]

list or watch objects of kind PodDisruptionBudget

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchNamespacedPodDisruptionBudgetResponse> constructor, or WatchNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.

Arguments

  • namespace

    object name and auth scope, such as for teams and projects

  • optional

    Optional parameters. Use Default::default() to not pass any.

impl PodDisruptionBudget[src]

pub fn watch_pod_disruption_budget_for_all_namespaces(
    optional: WatchPodDisruptionBudgetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodDisruptionBudgetForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind PodDisruptionBudget

This operation only supports watching one item, or a list of items, of this type for changes.

Use the returned crate::ResponseBody<WatchPodDisruptionBudgetForAllNamespacesResponse> constructor, or WatchPodDisruptionBudgetForAllNamespacesResponse directly, to parse the HTTP response.

Arguments

  • optional

    Optional parameters. Use Default::default() to not pass any.

Trait Implementations

impl Resource for PodDisruptionBudget[src]

impl Metadata for PodDisruptionBudget[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for PodDisruptionBudget[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<PodDisruptionBudget> for PodDisruptionBudget[src]

impl Default for PodDisruptionBudget[src]

impl Debug for PodDisruptionBudget[src]

impl Serialize for PodDisruptionBudget[src]

impl<'de> Deserialize<'de> for PodDisruptionBudget[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]