pub struct WorkforcePool {
pub access_restrictions: Option<AccessRestrictions>,
pub description: Option<String>,
pub disabled: Option<bool>,
pub display_name: Option<String>,
pub expire_time: Option<DateTime<Utc>>,
pub name: Option<String>,
pub parent: Option<String>,
pub session_duration: Option<Duration>,
pub state: Option<String>,
}
Expand description
Represents a collection of external workforces. Provides namespaces for federated users that can be referenced in IAM policies.
§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).
- workforce pools create locations (request)
- workforce pools get locations (response)
- workforce pools patch locations (request)
Fields§
§access_restrictions: Option<AccessRestrictions>
Optional. Configure access restrictions on the workforce pool users. This is an optional field. If specified web sign-in can be restricted to given set of services or programmatic sign-in can be disabled for pool users.
description: Option<String>
A user-specified description of the pool. Cannot exceed 256 characters.
disabled: Option<bool>
Disables the workforce pool. You cannot use a disabled pool to exchange tokens, or use existing tokens to access resources. If the pool is re-enabled, existing tokens grant access again.
display_name: Option<String>
A user-specified display name of the pool in Google Cloud Console. Cannot exceed 32 characters.
expire_time: Option<DateTime<Utc>>
Output only. Time after which the workforce pool will be permanently purged and cannot be recovered.
name: Option<String>
Output only. The resource name of the pool. Format: locations/{location}/workforcePools/{workforce_pool_id}
parent: Option<String>
Immutable. The resource name of the parent. Format: organizations/{org-id}
.
session_duration: Option<Duration>
Duration that the Google Cloud access tokens, console sign-in sessions, and gcloud
sign-in sessions from this pool are valid. Must be greater than 15 minutes (900s) and less than 12 hours (43200s). If session_duration
is not configured, minted credentials have a default duration of one hour (3600s). For SAML providers, the lifetime of the token is the minimum of the session_duration
and the SessionNotOnOrAfter
claim in the SAML assertion.
state: Option<String>
Output only. The state of the pool.
Trait Implementations§
Source§impl Clone for WorkforcePool
impl Clone for WorkforcePool
Source§fn clone(&self) -> WorkforcePool
fn clone(&self) -> WorkforcePool
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for WorkforcePool
impl Debug for WorkforcePool
Source§impl Default for WorkforcePool
impl Default for WorkforcePool
Source§fn default() -> WorkforcePool
fn default() -> WorkforcePool
Source§impl<'de> Deserialize<'de> for WorkforcePool
impl<'de> Deserialize<'de> for WorkforcePool
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 WorkforcePool
impl Serialize for WorkforcePool
impl RequestValue for WorkforcePool
impl ResponseResult for WorkforcePool
Auto Trait Implementations§
impl Freeze for WorkforcePool
impl RefUnwindSafe for WorkforcePool
impl Send for WorkforcePool
impl Sync for WorkforcePool
impl Unpin for WorkforcePool
impl UnwindSafe for WorkforcePool
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