[−][src]Struct k8s_openapi::api::extensions::v1beta1::PodSecurityPolicy
PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead.
Fields
metadata: Option<ObjectMeta>Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/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 -
optionalOptional parameters. Use
Default::default()to not pass any.
impl PodSecurityPolicy[src]
pub fn delete_collection_pod_security_policy(
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeleteCollectionPodSecurityPolicyResponse>), RequestError>[src]
delete_optional: DeleteOptional,
list_optional: ListOptional
) -> 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
-
delete_optionalDelete options. Use
Default::default()to not pass any. -
list_optionalList options. Use
Default::default()to not pass any.
impl PodSecurityPolicy[src]
pub fn delete_pod_security_policy(
name: &str,
optional: DeleteOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<DeletePodSecurityPolicyResponse>), RequestError>[src]
name: &str,
optional: DeleteOptional
) -> 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
-
namename of the PodSecurityPolicy
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl PodSecurityPolicy[src]
pub fn list_pod_security_policy(
optional: ListOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<ListPodSecurityPolicyResponse>), RequestError>[src]
optional: ListOptional
) -> 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
-
optionalOptional parameters. Use
Default::default()to not pass any.
impl PodSecurityPolicy[src]
pub fn patch_pod_security_policy(
name: &str,
body: &Patch,
optional: PatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<PatchPodSecurityPolicyResponse>), RequestError>[src]
name: &str,
body: &Patch,
optional: PatchOptional
) -> 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
-
namename of the PodSecurityPolicy
-
body -
optionalOptional 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
-
namename of the PodSecurityPolicy
-
optionalOptional 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
-
namename of the PodSecurityPolicy
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
impl PodSecurityPolicy[src]
pub fn watch_pod_security_policy(
optional: WatchOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<WatchPodSecurityPolicyResponse>), RequestError>[src]
optional: WatchOptional
) -> 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
-
optionalOptional 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 Default for PodSecurityPolicy[src]
fn default() -> 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 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 Sync for PodSecurityPolicy
impl Unpin for PodSecurityPolicy
impl Send for PodSecurityPolicy
impl UnwindSafe for PodSecurityPolicy
impl RefUnwindSafe for PodSecurityPolicy
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[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>,