pub struct ResourceAccessReview {
pub content: Option<RawExtension>,
pub is_non_resource_url: bool,
pub namespace: String,
pub path: String,
pub resource: String,
pub resource_api_group: String,
pub resource_api_version: String,
pub resource_name: String,
pub verb: String,
}Expand description
ResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec
Fields§
§content: Option<RawExtension>Content is the actual content of the request for create and update
is_non_resource_url: boolIsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)
namespace: StringNamespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces
path: StringPath is the path of a non resource URL
resource: StringResource is one of the existing resource types
resource_api_group: StringGroup is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the ‘groups’ field when inlined
resource_api_version: StringVersion is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined
resource_name: StringResourceName is the name of the resource being requested for a “get” or deleted for a “delete”
verb: StringVerb is one of: get, list, watch, create, update, delete
Implementations§
Source§impl ResourceAccessReview
impl ResourceAccessReview
Sourcepub fn create_resource_access_review(
body: &ResourceAccessReview,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_resource_access_review( body: &ResourceAccessReview, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a ResourceAccessReview
Use the returned k8s_openapi::ResponseBody<k8s_openapi::CreateResponse<Self>> constructor, or k8s_openapi::CreateResponse<Self> directly, to parse the HTTP response.
§Arguments
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations§
Source§impl Clone for ResourceAccessReview
impl Clone for ResourceAccessReview
Source§fn clone(&self) -> ResourceAccessReview
fn clone(&self) -> ResourceAccessReview
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceAccessReview
impl Debug for ResourceAccessReview
Source§impl Default for ResourceAccessReview
impl Default for ResourceAccessReview
Source§fn default() -> ResourceAccessReview
fn default() -> ResourceAccessReview
Source§impl<'de> Deserialize<'de> for ResourceAccessReview
impl<'de> Deserialize<'de> for ResourceAccessReview
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>,
Source§impl PartialEq for ResourceAccessReview
impl PartialEq for ResourceAccessReview
Source§impl Resource for ResourceAccessReview
impl Resource for ResourceAccessReview
Source§const API_VERSION: &'static str = "authorization.openshift.io/v1"
const API_VERSION: &'static str = "authorization.openshift.io/v1"
Resource::GROUP and Resource::VERSION (eg "apiextensions.k8s.io/v1beta1")
or just the version for resources without a group (eg "v1"). Read more