pub struct OAuthAuthorizeToken {
pub client_name: Option<String>,
pub code_challenge: Option<String>,
pub code_challenge_method: Option<String>,
pub expires_in: Option<i64>,
pub metadata: ObjectMeta,
pub redirect_uri: Option<String>,
pub scopes: Option<Vec<String>>,
pub state: Option<String>,
pub user_name: Option<String>,
pub user_uid: Option<String>,
}
Expand description
OAuthAuthorizeToken describes an OAuth authorization token
Fields§
§client_name: Option<String>
ClientName references the client that created this token.
code_challenge: Option<String>
CodeChallenge is the optional code_challenge associated with this authorization code, as described in rfc7636
code_challenge_method: Option<String>
CodeChallengeMethod is the optional code_challenge_method associated with this authorization code, as described in rfc7636
expires_in: Option<i64>
ExpiresIn is the seconds from CreationTime before this token expires.
metadata: ObjectMeta
Standard object’s metadata.
redirect_uri: Option<String>
RedirectURI is the redirection associated with the token.
scopes: Option<Vec<String>>
Scopes is an array of the requested scopes.
state: Option<String>
State data from request
user_name: Option<String>
UserName is the user name associated with this token
user_uid: Option<String>
UserUID is the unique UID associated with this token. UserUID and UserName must both match for this token to be valid.
Implementations§
Source§impl OAuthAuthorizeToken
impl OAuthAuthorizeToken
create an OAuthAuthorizeToken
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 OAuthAuthorizeToken
impl OAuthAuthorizeToken
delete collection of OAuthAuthorizeToken
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 OAuthAuthorizeToken
impl OAuthAuthorizeToken
delete an OAuthAuthorizeToken
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 OAuthAuthorizeToken
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthAuthorizeToken
impl OAuthAuthorizeToken
list or watch objects of kind OAuthAuthorizeToken
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 OAuthAuthorizeToken
impl OAuthAuthorizeToken
partially update the specified OAuthAuthorizeToken
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 OAuthAuthorizeToken
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthAuthorizeToken
impl OAuthAuthorizeToken
read the specified OAuthAuthorizeToken
Use the returned k8s_openapi::ResponseBody
<
ReadOAuthAuthorizeTokenResponse
>
constructor, or ReadOAuthAuthorizeTokenResponse
directly, to parse the HTTP response.
§Arguments
-
name
name of the OAuthAuthorizeToken
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthAuthorizeToken
impl OAuthAuthorizeToken
replace the specified OAuthAuthorizeToken
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 OAuthAuthorizeToken
-
body
-
optional
Optional parameters. Use
Default::default()
to not pass any.
Source§impl OAuthAuthorizeToken
impl OAuthAuthorizeToken
list or watch objects of kind OAuthAuthorizeToken
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 OAuthAuthorizeToken
impl Clone for OAuthAuthorizeToken
Source§fn clone(&self) -> OAuthAuthorizeToken
fn clone(&self) -> OAuthAuthorizeToken
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OAuthAuthorizeToken
impl Debug for OAuthAuthorizeToken
Source§impl Default for OAuthAuthorizeToken
impl Default for OAuthAuthorizeToken
Source§fn default() -> OAuthAuthorizeToken
fn default() -> OAuthAuthorizeToken
Source§impl<'de> Deserialize<'de> for OAuthAuthorizeToken
impl<'de> Deserialize<'de> for OAuthAuthorizeToken
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 OAuthAuthorizeToken
impl Metadata for OAuthAuthorizeToken
Source§impl PartialEq for OAuthAuthorizeToken
impl PartialEq for OAuthAuthorizeToken
Source§impl Resource for OAuthAuthorizeToken
impl Resource for OAuthAuthorizeToken
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