pub struct OAuthClientAuthorization {
pub client_name: Option<String>,
pub metadata: ObjectMeta,
pub scopes: Option<Vec<String>>,
pub user_name: Option<String>,
pub user_uid: Option<String>,
}
Expand description
OAuthClientAuthorization describes an authorization created by an OAuth client
Fields§
§client_name: Option<String>
ClientName references the client that created this authorization
metadata: ObjectMeta
Standard object’s metadata.
scopes: Option<Vec<String>>
Scopes is an array of the granted scopes.
user_name: Option<String>
UserName is the user name that authorized this client
user_uid: Option<String>
UserUID is the unique UID associated with this authorization. UserUID and UserName must both match for this authorization to be valid.
Implementations§
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
create an OAuthClientAuthorization
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::CreateResponse
<Self>>
constructor, or k8s_openapi::CreateResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
delete collection of OAuthClientAuthorization
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::DeleteResponse
<
k8s_openapi::List
<Self>>>
constructor, or k8s_openapi::DeleteResponse
<
k8s_openapi::List
<Self>>
directly, to parse the HTTP response.
§Arguments
-
delete_optional
Delete options. Use
Default::default()
to not pass any. -
list_optional
List options. Use
Default::default()
to not pass any.
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
delete an OAuthClientAuthorization
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::DeleteResponse
<Self>>
constructor, or k8s_openapi::DeleteResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the OAuthClientAuthorization
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
list or watch objects of kind OAuthClientAuthorization
This operation only supports listing all items of this type.
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::ListResponse
<Self>>
constructor, or k8s_openapi::ListResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
partially update the specified OAuthClientAuthorization
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::PatchResponse
<Self>>
constructor, or k8s_openapi::PatchResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the OAuthClientAuthorization
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
read the specified OAuthClientAuthorization
Use the returned k8s_openapi::ResponseBody
<
ReadOAuthClientAuthorizationResponse
>
constructor, or ReadOAuthClientAuthorizationResponse
directly, to parse the HTTP response.
§Arguments
-
name
name of the OAuthClientAuthorization
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
replace the specified OAuthClientAuthorization
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::ReplaceResponse
<Self>>
constructor, or k8s_openapi::ReplaceResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
name
name of the OAuthClientAuthorization
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthClientAuthorization
impl OAuthClientAuthorization
list or watch objects of kind OAuthClientAuthorization
This operation only supports watching one item, or a list of items, of this type for changes.
Use the returned k8s_openapi::ResponseBody
<
k8s_openapi::WatchResponse
<Self>>
constructor, or k8s_openapi::WatchResponse
<Self>
directly, to parse the HTTP response.
§Arguments
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Trait Implementations§
Source§impl Clone for OAuthClientAuthorization
impl Clone for OAuthClientAuthorization
Source§fn clone(&self) -> OAuthClientAuthorization
fn clone(&self) -> OAuthClientAuthorization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OAuthClientAuthorization
impl Debug for OAuthClientAuthorization
Source§impl Default for OAuthClientAuthorization
impl Default for OAuthClientAuthorization
Source§fn default() -> OAuthClientAuthorization
fn default() -> OAuthClientAuthorization
Source§impl<'de> Deserialize<'de> for OAuthClientAuthorization
impl<'de> Deserialize<'de> for OAuthClientAuthorization
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 Metadata for OAuthClientAuthorization
impl Metadata for OAuthClientAuthorization
Source§impl PartialEq for OAuthClientAuthorization
impl PartialEq for OAuthClientAuthorization
Source§impl Resource for OAuthClientAuthorization
impl Resource for OAuthClientAuthorization
Source§const API_VERSION: &'static str = "oauth.openshift.io/v1"
const API_VERSION: &'static str = "oauth.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