pub struct PodSecurityPolicyReview {
pub spec: PodSecurityPolicyReviewSpec,
pub status: Option<PodSecurityPolicyReviewStatus>,
}
Expand description
PodSecurityPolicyReview checks which service accounts (not users, since that would be cluster-wide) can create the PodTemplateSpec
in question.
Fields§
§spec: PodSecurityPolicyReviewSpec
spec is the PodSecurityPolicy to check.
status: Option<PodSecurityPolicyReviewStatus>
status represents the current information/status for the PodSecurityPolicyReview.
Implementations§
Source§impl PodSecurityPolicyReview
impl PodSecurityPolicyReview
Sourcepub fn create_namespaced_pod_security_policy_review(
namespace: &str,
body: &PodSecurityPolicyReview,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_pod_security_policy_review( namespace: &str, body: &PodSecurityPolicyReview, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a PodSecurityPolicyReview
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
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.
Trait Implementations§
Source§impl Clone for PodSecurityPolicyReview
impl Clone for PodSecurityPolicyReview
Source§fn clone(&self) -> PodSecurityPolicyReview
fn clone(&self) -> PodSecurityPolicyReview
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PodSecurityPolicyReview
impl Debug for PodSecurityPolicyReview
Source§impl Default for PodSecurityPolicyReview
impl Default for PodSecurityPolicyReview
Source§fn default() -> PodSecurityPolicyReview
fn default() -> PodSecurityPolicyReview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PodSecurityPolicyReview
impl<'de> Deserialize<'de> for PodSecurityPolicyReview
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PodSecurityPolicyReview
impl PartialEq for PodSecurityPolicyReview
Source§impl Resource for PodSecurityPolicyReview
impl Resource for PodSecurityPolicyReview
Source§const API_VERSION: &'static str = "security.openshift.io/v1"
const API_VERSION: &'static str = "security.openshift.io/v1"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moreSource§impl Serialize for PodSecurityPolicyReview
impl Serialize for PodSecurityPolicyReview
impl StructuralPartialEq for PodSecurityPolicyReview
Auto Trait Implementations§
impl Freeze for PodSecurityPolicyReview
impl RefUnwindSafe for PodSecurityPolicyReview
impl Send for PodSecurityPolicyReview
impl Sync for PodSecurityPolicyReview
impl Unpin for PodSecurityPolicyReview
impl UnwindSafe for PodSecurityPolicyReview
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more