#[non_exhaustive]pub struct IdentityAwareProxy {
pub enabled: bool,
pub oauth2_client_id: String,
pub oauth2_client_secret: String,
pub oauth2_client_secret_sha256: String,
/* private fields */
}
Expand description
Identity-Aware Proxy
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.enabled: bool
Whether the serving infrastructure will authenticate and authorize all incoming requests.
If true, the oauth2_client_id
and oauth2_client_secret
fields must be non-empty.
oauth2_client_id: String
OAuth2 client ID to use for the authentication flow.
oauth2_client_secret: String
OAuth2 client secret to use for the authentication flow.
For security reasons, this value cannot be retrieved via the API.
Instead, the SHA-256 hash of the value is returned in the
oauth2_client_secret_sha256
field.
@InputOnly
oauth2_client_secret_sha256: String
Hex-encoded SHA-256 hash of the client secret.
@OutputOnly
Implementations§
Source§impl IdentityAwareProxy
impl IdentityAwareProxy
pub fn new() -> Self
Sourcepub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of enabled.
Sourcepub fn set_oauth2_client_id<T: Into<String>>(self, v: T) -> Self
pub fn set_oauth2_client_id<T: Into<String>>(self, v: T) -> Self
Sets the value of oauth2_client_id.
Sourcepub fn set_oauth2_client_secret<T: Into<String>>(self, v: T) -> Self
pub fn set_oauth2_client_secret<T: Into<String>>(self, v: T) -> Self
Sets the value of oauth2_client_secret.
Sourcepub fn set_oauth2_client_secret_sha256<T: Into<String>>(self, v: T) -> Self
pub fn set_oauth2_client_secret_sha256<T: Into<String>>(self, v: T) -> Self
Sets the value of oauth2_client_secret_sha256.
Trait Implementations§
Source§impl Clone for IdentityAwareProxy
impl Clone for IdentityAwareProxy
Source§fn clone(&self) -> IdentityAwareProxy
fn clone(&self) -> IdentityAwareProxy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IdentityAwareProxy
impl Debug for IdentityAwareProxy
Source§impl Default for IdentityAwareProxy
impl Default for IdentityAwareProxy
Source§fn default() -> IdentityAwareProxy
fn default() -> IdentityAwareProxy
Returns the “default value” for a type. Read more
Source§impl Message for IdentityAwareProxy
impl Message for IdentityAwareProxy
Source§impl PartialEq for IdentityAwareProxy
impl PartialEq for IdentityAwareProxy
impl StructuralPartialEq for IdentityAwareProxy
Auto Trait Implementations§
impl Freeze for IdentityAwareProxy
impl RefUnwindSafe for IdentityAwareProxy
impl Send for IdentityAwareProxy
impl Sync for IdentityAwareProxy
impl Unpin for IdentityAwareProxy
impl UnwindSafe for IdentityAwareProxy
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
Mutably borrows from an owned value. Read more