[−][src]Struct k8s_openapi::api::policy::v1beta1::PodDisruptionBudget
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]
namespace: &str,
body: &PodDisruptionBudget,
optional: CreateNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedPodDisruptionBudgetResponse>), RequestError>
create a PodDisruptionBudget
Use the returned crate::ResponseBody<CreateNamespacedPodDisruptionBudgetResponse> constructor, or CreateNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional 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]
namespace: &str,
optional: DeleteCollectionNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedPodDisruptionBudgetResponse>), RequestError>
delete collection of PodDisruptionBudget
Use the returned crate::ResponseBody<DeleteCollectionNamespacedPodDisruptionBudgetResponse> constructor, or DeleteCollectionNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.
Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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]
name: &str,
namespace: &str,
optional: DeleteNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedPodDisruptionBudgetResponse>), RequestError>
delete a PodDisruptionBudget
Use the returned crate::ResponseBody<DeleteNamespacedPodDisruptionBudgetResponse> constructor, or DeleteNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.
Arguments
-
namename of the PodDisruptionBudget
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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]
namespace: &str,
optional: ListNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedPodDisruptionBudgetResponse>), RequestError>
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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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]
optional: ListPodDisruptionBudgetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodDisruptionBudgetForAllNamespacesResponse>), RequestError>
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
-
optionalOptional 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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedPodDisruptionBudgetResponse>), RequestError>
partially update the specified PodDisruptionBudget
Use the returned crate::ResponseBody<PatchNamespacedPodDisruptionBudgetResponse> constructor, or PatchNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.
Arguments
-
namename of the PodDisruptionBudget
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional 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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedPodDisruptionBudgetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedPodDisruptionBudgetStatusResponse>), RequestError>
partially update status of the specified PodDisruptionBudget
Use the returned crate::ResponseBody<PatchNamespacedPodDisruptionBudgetStatusResponse> constructor, or PatchNamespacedPodDisruptionBudgetStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the PodDisruptionBudget
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional 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]
name: &str,
namespace: &str,
optional: ReadNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedPodDisruptionBudgetResponse>), RequestError>
read the specified PodDisruptionBudget
Use the returned crate::ResponseBody<ReadNamespacedPodDisruptionBudgetResponse> constructor, or ReadNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.
Arguments
-
namename of the PodDisruptionBudget
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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]
name: &str,
namespace: &str,
optional: ReadNamespacedPodDisruptionBudgetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedPodDisruptionBudgetStatusResponse>), RequestError>
read status of the specified PodDisruptionBudget
Use the returned crate::ResponseBody<ReadNamespacedPodDisruptionBudgetStatusResponse> constructor, or ReadNamespacedPodDisruptionBudgetStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the PodDisruptionBudget
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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]
name: &str,
namespace: &str,
body: &PodDisruptionBudget,
optional: ReplaceNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodDisruptionBudgetResponse>), RequestError>
replace the specified PodDisruptionBudget
Use the returned crate::ResponseBody<ReplaceNamespacedPodDisruptionBudgetResponse> constructor, or ReplaceNamespacedPodDisruptionBudgetResponse directly, to parse the HTTP response.
Arguments
-
namename of the PodDisruptionBudget
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional 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]
name: &str,
namespace: &str,
body: &PodDisruptionBudget,
optional: ReplaceNamespacedPodDisruptionBudgetStatusOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodDisruptionBudgetStatusResponse>), RequestError>
replace status of the specified PodDisruptionBudget
Use the returned crate::ResponseBody<ReplaceNamespacedPodDisruptionBudgetStatusResponse> constructor, or ReplaceNamespacedPodDisruptionBudgetStatusResponse directly, to parse the HTTP response.
Arguments
-
namename of the PodDisruptionBudget
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional 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]
namespace: &str,
optional: WatchNamespacedPodDisruptionBudgetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedPodDisruptionBudgetResponse>), RequestError>
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
-
namespaceobject name and auth scope, such as for teams and projects
-
optionalOptional 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]
optional: WatchPodDisruptionBudgetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodDisruptionBudgetForAllNamespacesResponse>), RequestError>
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
-
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations
impl Resource for PodDisruptionBudget[src]
fn api_version() -> &'static str[src]
fn group() -> &'static str[src]
fn kind() -> &'static str[src]
fn version() -> &'static str[src]
impl Metadata for PodDisruptionBudget[src]
impl Default for PodDisruptionBudget[src]
fn default() -> PodDisruptionBudget[src]
impl PartialEq<PodDisruptionBudget> for PodDisruptionBudget[src]
fn eq(&self, other: &PodDisruptionBudget) -> bool[src]
fn ne(&self, other: &PodDisruptionBudget) -> bool[src]
impl Clone for PodDisruptionBudget[src]
fn clone(&self) -> PodDisruptionBudget[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for PodDisruptionBudget[src]
impl Serialize for PodDisruptionBudget[src]
impl<'de> Deserialize<'de> for PodDisruptionBudget[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>, [src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for PodDisruptionBudget
impl Sync for PodDisruptionBudget
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,