pub struct OauthClient {
pub allowed_grant_types: Option<Vec<String>>,
pub allowed_redirect_uris: Option<Vec<String>>,
pub allowed_scopes: Option<Vec<String>>,
pub client_id: Option<String>,
pub client_type: Option<String>,
pub description: Option<String>,
pub disabled: Option<bool>,
pub display_name: Option<String>,
pub expire_time: Option<DateTime<Utc>>,
pub name: Option<String>,
pub state: Option<String>,
}
Expand description
Represents an OauthClient. Used to access Google Cloud resources on behalf of a Workforce Identity Federation user by using OAuth 2.0 Protocol to obtain an access token from Google Cloud.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations oauth clients create projects (request|response)
- locations oauth clients delete projects (response)
- locations oauth clients get projects (response)
- locations oauth clients patch projects (request|response)
- locations oauth clients undelete projects (response)
Fields§
§allowed_grant_types: Option<Vec<String>>
Required. The list of OAuth grant types is allowed for the OauthClient.
allowed_redirect_uris: Option<Vec<String>>
Required. The list of redirect uris that is allowed to redirect back when authorization process is completed.
allowed_scopes: Option<Vec<String>>
Required. The list of scopes that the OauthClient is allowed to request during OAuth flows. The following scopes are supported: * https://www.googleapis.com/auth/cloud-platform
: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
client_id: Option<String>
Output only. The system-generated OauthClient id.
client_type: Option<String>
Immutable. The type of OauthClient. Either public or private. For private clients, the client secret can be managed using the dedicated OauthClientCredential resource.
description: Option<String>
Optional. A user-specified description of the OauthClient. Cannot exceed 256 characters.
disabled: Option<bool>
Optional. Whether the OauthClient is disabled. You cannot use a disabled OAuth client.
display_name: Option<String>
Optional. A user-specified display name of the OauthClient. Cannot exceed 32 characters.
expire_time: Option<DateTime<Utc>>
Output only. Time after which the OauthClient will be permanently purged and cannot be recovered.
name: Option<String>
Immutable. The resource name of the OauthClient. Format:projects/{project}/locations/{location}/oauthClients/{oauth_client}
.
state: Option<String>
Output only. The state of the OauthClient.
Trait Implementations§
Source§impl Clone for OauthClient
impl Clone for OauthClient
Source§fn clone(&self) -> OauthClient
fn clone(&self) -> OauthClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OauthClient
impl Debug for OauthClient
Source§impl Default for OauthClient
impl Default for OauthClient
Source§fn default() -> OauthClient
fn default() -> OauthClient
Source§impl<'de> Deserialize<'de> for OauthClient
impl<'de> Deserialize<'de> for OauthClient
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 Serialize for OauthClient
impl Serialize for OauthClient
impl RequestValue for OauthClient
impl ResponseResult for OauthClient
Auto Trait Implementations§
impl Freeze for OauthClient
impl RefUnwindSafe for OauthClient
impl Send for OauthClient
impl Sync for OauthClient
impl Unpin for OauthClient
impl UnwindSafe for OauthClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more