[−][src]Struct k8s_openapi::api::settings::v1alpha1::PodPreset
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]
namespace: &str,
body: &PodPreset,
optional: CreateNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateNamespacedPodPresetResponse>), RequestError>
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]
namespace: &str,
optional: DeleteCollectionNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionNamespacedPodPresetResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: DeleteNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteNamespacedPodPresetResponse>), RequestError>
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]
namespace: &str,
optional: ListNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListNamespacedPodPresetResponse>), RequestError>
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]
optional: ListPodPresetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodPresetForAllNamespacesResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &Patch,
optional: PatchNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchNamespacedPodPresetResponse>), RequestError>
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]
name: &str,
namespace: &str,
optional: ReadNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadNamespacedPodPresetResponse>), RequestError>
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]
name: &str,
namespace: &str,
body: &PodPreset,
optional: ReplaceNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplaceNamespacedPodPresetResponse>), RequestError>
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]
namespace: &str,
optional: WatchNamespacedPodPresetOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchNamespacedPodPresetResponse>), RequestError>
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]
optional: WatchPodPresetForAllNamespacesOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodPresetForAllNamespacesResponse>), RequestError>
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]
fn api_version() -> &'static str
[src]
fn group() -> &'static str
[src]
fn kind() -> &'static str
[src]
fn version() -> &'static str
[src]
impl Metadata for PodPreset
[src]
impl Clone for PodPreset
[src]
fn clone(&self) -> 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]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,