[−][src]Struct k8s_openapi::api::policy::v1beta1::PodSecurityPolicy
PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.
Fields
metadata: Option<ObjectMeta>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
spec: Option<PodSecurityPolicySpec>
spec defines the policy enforced.
Methods
impl PodSecurityPolicy
[src]
pub fn create_pod_security_policy(
body: &PodSecurityPolicy,
optional: CreatePodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreatePodSecurityPolicyResponse>), RequestError>
[src]
body: &PodSecurityPolicy,
optional: CreatePodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreatePodSecurityPolicyResponse>), RequestError>
create a PodSecurityPolicy
Use the returned crate::ResponseBody
<
CreatePodSecurityPolicyResponse
>
constructor, or CreatePodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodSecurityPolicy
[src]
pub fn delete_collection_pod_security_policy(
optional: DeleteCollectionPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionPodSecurityPolicyResponse>), RequestError>
[src]
optional: DeleteCollectionPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionPodSecurityPolicyResponse>), RequestError>
delete collection of PodSecurityPolicy
Use the returned crate::ResponseBody
<
DeleteCollectionPodSecurityPolicyResponse
>
constructor, or DeleteCollectionPodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodSecurityPolicy
[src]
pub fn delete_pod_security_policy(
name: &str,
optional: DeletePodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeletePodSecurityPolicyResponse>), RequestError>
[src]
name: &str,
optional: DeletePodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeletePodSecurityPolicyResponse>), RequestError>
delete a PodSecurityPolicy
Use the returned crate::ResponseBody
<
DeletePodSecurityPolicyResponse
>
constructor, or DeletePodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodSecurityPolicy
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodSecurityPolicy
[src]
pub fn list_pod_security_policy(
optional: ListPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodSecurityPolicyResponse>), RequestError>
[src]
optional: ListPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodSecurityPolicyResponse>), RequestError>
list or watch objects of kind PodSecurityPolicy
This operation only supports listing all items of this type.
Use the returned crate::ResponseBody
<
ListPodSecurityPolicyResponse
>
constructor, or ListPodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodSecurityPolicy
[src]
pub fn patch_pod_security_policy(
name: &str,
body: &Patch,
optional: PatchPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPodSecurityPolicyResponse>), RequestError>
[src]
name: &str,
body: &Patch,
optional: PatchPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPodSecurityPolicyResponse>), RequestError>
partially update the specified PodSecurityPolicy
Use the returned crate::ResponseBody
<
PatchPodSecurityPolicyResponse
>
constructor, or PatchPodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodSecurityPolicy
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodSecurityPolicy
[src]
pub fn read_pod_security_policy(
name: &str,
optional: ReadPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadPodSecurityPolicyResponse>), RequestError>
[src]
name: &str,
optional: ReadPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReadPodSecurityPolicyResponse>), RequestError>
read the specified PodSecurityPolicy
Use the returned crate::ResponseBody
<
ReadPodSecurityPolicyResponse
>
constructor, or ReadPodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodSecurityPolicy
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodSecurityPolicy
[src]
pub fn replace_pod_security_policy(
name: &str,
body: &PodSecurityPolicy,
optional: ReplacePodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplacePodSecurityPolicyResponse>), RequestError>
[src]
name: &str,
body: &PodSecurityPolicy,
optional: ReplacePodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ReplacePodSecurityPolicyResponse>), RequestError>
replace the specified PodSecurityPolicy
Use the returned crate::ResponseBody
<
ReplacePodSecurityPolicyResponse
>
constructor, or ReplacePodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
name
name of the PodSecurityPolicy
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
impl PodSecurityPolicy
[src]
pub fn watch_pod_security_policy(
optional: WatchPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodSecurityPolicyResponse>), RequestError>
[src]
optional: WatchPodSecurityPolicyOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodSecurityPolicyResponse>), RequestError>
list or watch objects of kind PodSecurityPolicy
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned crate::ResponseBody
<
WatchPodSecurityPolicyResponse
>
constructor, or WatchPodSecurityPolicyResponse
directly, to parse the HTTP response.
Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations
impl Resource for PodSecurityPolicy
[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 PodSecurityPolicy
[src]
impl Clone for PodSecurityPolicy
[src]
fn clone(&self) -> PodSecurityPolicy
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<PodSecurityPolicy> for PodSecurityPolicy
[src]
fn eq(&self, other: &PodSecurityPolicy) -> bool
[src]
fn ne(&self, other: &PodSecurityPolicy) -> bool
[src]
impl Default for PodSecurityPolicy
[src]
fn default() -> PodSecurityPolicy
[src]
impl Debug for PodSecurityPolicy
[src]
impl Serialize for PodSecurityPolicy
[src]
impl<'de> Deserialize<'de> for PodSecurityPolicy
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl Send for PodSecurityPolicy
impl Sync for PodSecurityPolicy
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>,