#[non_exhaustive]pub struct BackendServiceIAP {
pub enabled: Option<bool>,
pub oauth_2_client_id: Option<String>,
pub oauth_2_client_secret: Option<String>,
pub oauth_2_client_secret_sha_256: Option<String>,
/* private fields */
}Available on crate features
backend-services or region-backend-services only.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: Option<bool>Whether the serving infrastructure will authenticate and authorize all incoming requests.
oauth_2_client_id: Option<String>OAuth2 client ID to use for the authentication flow.
oauth_2_client_secret: Option<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 oauth2ClientSecretSha256 field.
@InputOnly
oauth_2_client_secret_sha_256: Option<String>Output only. [Output Only] SHA256 hash value for the field oauth2_client_secret above.
Implementations§
Source§impl BackendServiceIAP
impl BackendServiceIAP
pub fn new() -> Self
Sourcepub fn set_enabled<T>(self, v: T) -> Self
pub fn set_enabled<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_enabled<T>(self, v: Option<T>) -> Self
Sourcepub fn set_oauth_2_client_id<T>(self, v: T) -> Self
pub fn set_oauth_2_client_id<T>(self, v: T) -> Self
Sets the value of oauth_2_client_id.
§Example
ⓘ
let x = BackendServiceIAP::new().set_oauth_2_client_id("example");Sourcepub fn set_or_clear_oauth_2_client_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_oauth_2_client_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of oauth_2_client_id.
§Example
ⓘ
let x = BackendServiceIAP::new().set_or_clear_oauth_2_client_id(Some("example"));
let x = BackendServiceIAP::new().set_or_clear_oauth_2_client_id(None::<String>);Sourcepub fn set_oauth_2_client_secret<T>(self, v: T) -> Self
pub fn set_oauth_2_client_secret<T>(self, v: T) -> Self
Sets the value of oauth_2_client_secret.
§Example
ⓘ
let x = BackendServiceIAP::new().set_oauth_2_client_secret("example");Sourcepub fn set_or_clear_oauth_2_client_secret<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_oauth_2_client_secret<T>(self, v: Option<T>) -> Self
Sets or clears the value of oauth_2_client_secret.
§Example
ⓘ
let x = BackendServiceIAP::new().set_or_clear_oauth_2_client_secret(Some("example"));
let x = BackendServiceIAP::new().set_or_clear_oauth_2_client_secret(None::<String>);Sourcepub fn set_oauth_2_client_secret_sha_256<T>(self, v: T) -> Self
pub fn set_oauth_2_client_secret_sha_256<T>(self, v: T) -> Self
Sets the value of oauth_2_client_secret_sha_256.
§Example
ⓘ
let x = BackendServiceIAP::new().set_oauth_2_client_secret_sha_256("example");Sourcepub fn set_or_clear_oauth_2_client_secret_sha_256<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_oauth_2_client_secret_sha_256<T>(self, v: Option<T>) -> Self
Sets or clears the value of oauth_2_client_secret_sha_256.
§Example
ⓘ
let x = BackendServiceIAP::new().set_or_clear_oauth_2_client_secret_sha_256(Some("example"));
let x = BackendServiceIAP::new().set_or_clear_oauth_2_client_secret_sha_256(None::<String>);Trait Implementations§
Source§impl Clone for BackendServiceIAP
impl Clone for BackendServiceIAP
Source§fn clone(&self) -> BackendServiceIAP
fn clone(&self) -> BackendServiceIAP
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 BackendServiceIAP
impl Debug for BackendServiceIAP
Source§impl Default for BackendServiceIAP
impl Default for BackendServiceIAP
Source§fn default() -> BackendServiceIAP
fn default() -> BackendServiceIAP
Returns the “default value” for a type. Read more
Source§impl Message for BackendServiceIAP
impl Message for BackendServiceIAP
Source§impl PartialEq for BackendServiceIAP
impl PartialEq for BackendServiceIAP
impl StructuralPartialEq for BackendServiceIAP
Auto Trait Implementations§
impl Freeze for BackendServiceIAP
impl RefUnwindSafe for BackendServiceIAP
impl Send for BackendServiceIAP
impl Sync for BackendServiceIAP
impl Unpin for BackendServiceIAP
impl UnwindSafe for BackendServiceIAP
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