[][src]Struct k8s_openapi::api::settings::v1alpha1::PodPreset

pub struct PodPreset {
    pub metadata: Option<ObjectMeta>,
    pub spec: Option<PodPresetSpec>,
}

PodPreset is a policy resource that defines additional runtime requirements for a Pod.

Fields

metadata: Option<ObjectMeta>spec: Option<PodPresetSpec>

Methods

impl PodPreset[src]

pub fn create_namespaced_pod_preset(
    namespace: &str,
    body: &PodPreset,
    optional: CreateNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedPodPresetResponse>), RequestError>
[src]

create a PodPreset

Use the returned crate::ResponseBody<CreateNamespacedPodPresetResponse> constructor, or CreateNamespacedPodPresetResponse 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 PodPreset[src]

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

delete collection of PodPreset

Use the returned crate::ResponseBody<DeleteCollectionNamespacedPodPresetResponse> constructor, or DeleteCollectionNamespacedPodPresetResponse 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 PodPreset[src]

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

delete a PodPreset

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

Arguments

  • name

    name of the PodPreset

  • namespace

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

  • optional

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

impl PodPreset[src]

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

list or watch objects of kind PodPreset

This operation only supports listing all items of this type.

Use the returned crate::ResponseBody<ListNamespacedPodPresetResponse> constructor, or ListNamespacedPodPresetResponse 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 PodPreset[src]

pub fn list_pod_preset_for_all_namespaces(
    optional: ListPodPresetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodPresetForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind PodPreset

This operation only supports listing all items of this type.

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

Arguments

  • optional

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

impl PodPreset[src]

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

partially update the specified PodPreset

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

Arguments

  • name

    name of the PodPreset

  • namespace

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

  • body

  • optional

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

impl PodPreset[src]

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

read the specified PodPreset

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

Arguments

  • name

    name of the PodPreset

  • namespace

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

  • optional

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

impl PodPreset[src]

pub fn replace_namespaced_pod_preset(
    name: &str,
    namespace: &str,
    body: &PodPreset,
    optional: ReplaceNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodPresetResponse>), RequestError>
[src]

replace the specified PodPreset

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

Arguments

  • name

    name of the PodPreset

  • namespace

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

  • body

  • optional

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

impl PodPreset[src]

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

list or watch objects of kind PodPreset

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

Use the returned crate::ResponseBody<WatchNamespacedPodPresetResponse> constructor, or WatchNamespacedPodPresetResponse 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 PodPreset[src]

pub fn watch_pod_preset_for_all_namespaces(
    optional: WatchPodPresetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodPresetForAllNamespacesResponse>), RequestError>
[src]

list or watch objects of kind PodPreset

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

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

Arguments

  • optional

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

Trait Implementations

impl Resource for PodPreset[src]

impl Metadata for PodPreset[src]

type Ty = ObjectMeta

The type of the metadata object.

impl Clone for PodPreset[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<PodPreset> for PodPreset[src]

impl Default for PodPreset[src]

impl Debug for PodPreset[src]

impl Serialize for PodPreset[src]

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

Auto Trait Implementations

impl Send for PodPreset

impl Sync for PodPreset

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]