pub struct LocalResourceAccessReview {
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
LocalResourceAccessReview is a means to request a list of which users and groups are authorized to perform the action specified by spec in a particular namespace
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 LocalResourceAccessReview
impl LocalResourceAccessReview
Sourcepub fn create_namespaced_local_resource_access_review(
namespace: &str,
body: &LocalResourceAccessReview,
optional: CreateOptional<'_>,
) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
pub fn create_namespaced_local_resource_access_review( namespace: &str, body: &LocalResourceAccessReview, optional: CreateOptional<'_>, ) -> Result<(Request<Vec<u8>>, fn(StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
create a LocalResourceAccessReview
Use the returned k8s_openapi::ResponseBody<k8s_openapi::CreateResponse<Self>> constructor, or k8s_openapi::CreateResponse<Self> directly, to parse the HTTP response.
§Arguments
-
namespaceobject name and auth scope, such as for teams and projects
-
body -
optionalOptional parameters. Use
Default::default()to not pass any.
Trait Implementations§
Source§impl Clone for LocalResourceAccessReview
impl Clone for LocalResourceAccessReview
Source§fn clone(&self) -> LocalResourceAccessReview
fn clone(&self) -> LocalResourceAccessReview
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LocalResourceAccessReview
impl Debug for LocalResourceAccessReview
Source§impl Default for LocalResourceAccessReview
impl Default for LocalResourceAccessReview
Source§fn default() -> LocalResourceAccessReview
fn default() -> LocalResourceAccessReview
Source§impl<'de> Deserialize<'de> for LocalResourceAccessReview
impl<'de> Deserialize<'de> for LocalResourceAccessReview
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 Resource for LocalResourceAccessReview
impl Resource for LocalResourceAccessReview
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