[][src]Struct openshift_openapi::api::authorization::v1::LocalSubjectAccessReview

pub struct LocalSubjectAccessReview {
    pub content: Option<RawExtension>,
    pub groups: Vec<String>,
    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 scopes: Vec<String>,
    pub user: String,
    pub verb: String,
}

LocalSubjectAccessReview is an object for requesting information about whether a user or group can perform an action in a particular namespace

Fields

content: Option<RawExtension>

Content is the actual content of the request for create and update

groups: Vec<String>

Groups is optional. Groups is the list of groups to which the User belongs.

is_non_resource_url: bool

IsNonResourceURL is true if this is a request for a non-resource URL (outside of the resource hieraarchy)

namespace: String

Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces

path: String

Path is the path of a non resource URL

resource: String

Resource is one of the existing resource types

resource_api_group: String

Group is the API group of the resource Serialized as resourceAPIGroup to avoid confusion with the 'groups' field when inlined

resource_api_version: String

Version is the API version of the resource Serialized as resourceAPIVersion to avoid confusion with TypeMeta.apiVersion and ObjectMeta.resourceVersion when inlined

resource_name: String

ResourceName is the name of the resource being requested for a "get" or deleted for a "delete"

scopes: Vec<String>

Scopes to use for the evaluation. Empty means "use the unscoped (full) permissions of the user/groups". Nil for a self-SAR, means "use the scopes on this request". Nil for a regular SAR, means the same as empty.

user: String

User is optional. If both User and Groups are empty, the current authenticated user is used.

verb: String

Verb is one of: get, list, watch, create, update, delete

Implementations

impl LocalSubjectAccessReview[src]

pub fn create_namespaced_local_subject_access_review(
    namespace: &str,
    body: &LocalSubjectAccessReview,
    optional: CreateOptional
) -> Result<(Request<Vec<u8>>, fn(_: StatusCode) -> ResponseBody<CreateResponse<Self>>), RequestError>
[src]

create a LocalSubjectAccessReview

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

impl Clone for LocalSubjectAccessReview[src]

impl Debug for LocalSubjectAccessReview[src]

impl Default for LocalSubjectAccessReview[src]

impl<'de> Deserialize<'de> for LocalSubjectAccessReview[src]

impl PartialEq<LocalSubjectAccessReview> for LocalSubjectAccessReview[src]

impl Resource for LocalSubjectAccessReview[src]

impl Serialize for LocalSubjectAccessReview[src]

impl StructuralPartialEq for LocalSubjectAccessReview[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.