pub struct GoogleIdentityAccesscontextmanagerV1Condition {
pub device_policy: Option<GoogleIdentityAccesscontextmanagerV1DevicePolicy>,
pub ip_subnetworks: Option<Vec<String>>,
pub members: Option<Vec<String>>,
pub negate: Option<bool>,
pub regions: Option<Vec<String>>,
pub required_access_levels: Option<Vec<String>>,
}
Expand description
A condition necessary for an AccessLevel
to be granted. The Condition is an AND over its fields. So a Condition is true if: 1) the request IP is from one of the listed subnetworks AND 2) the originating device complies with the listed device policy AND 3) all listed access levels are granted AND 4) the request was sent at a time allowed by the DateTimeRestriction.
This type is not used in any activity, and only used as part of another schema.
Fields
device_policy: Option<GoogleIdentityAccesscontextmanagerV1DevicePolicy>
Device specific restrictions, all restrictions must hold for the Condition to be true. If not specified, all devices are allowed.
ip_subnetworks: Option<Vec<String>>
CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for a CIDR IP address block, the specified IP address portion must be properly truncated (i.e. all the host bits must be zero) or the input is considered malformed. For example, “192.0.2.0/24” is accepted but “192.0.2.1/24” is not. Similarly, for IPv6, “2001:db8::/32” is accepted whereas “2001:db8::1/32” is not. The originating IP of a request must be in one of the listed subnets in order for this Condition to be true. If empty, all IP addresses are allowed.
members: Option<Vec<String>>
The request must be made by one of the provided user or service accounts. Groups are not supported. Syntax: user:{emailid}
serviceAccount:{emailid}
If not specified, a request may come from any user.
negate: Option<bool>
Whether to negate the Condition. If true, the Condition becomes a NAND over its non-empty fields, each field must be false for the Condition overall to be satisfied. Defaults to false.
regions: Option<Vec<String>>
The request must originate from one of the provided countries/regions. Must be valid ISO 3166-1 alpha-2 codes.
required_access_levels: Option<Vec<String>>
A list of other access levels defined in the same Policy
, referenced by resource name. Referencing an AccessLevel
which does not exist is an error. All access levels listed must be granted for the Condition to be true. Example: “accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"
Trait Implementations
sourceimpl Clone for GoogleIdentityAccesscontextmanagerV1Condition
impl Clone for GoogleIdentityAccesscontextmanagerV1Condition
sourcefn clone(&self) -> GoogleIdentityAccesscontextmanagerV1Condition
fn clone(&self) -> GoogleIdentityAccesscontextmanagerV1Condition
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for GoogleIdentityAccesscontextmanagerV1Condition
impl Default for GoogleIdentityAccesscontextmanagerV1Condition
sourcefn default() -> GoogleIdentityAccesscontextmanagerV1Condition
fn default() -> GoogleIdentityAccesscontextmanagerV1Condition
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleIdentityAccesscontextmanagerV1Condition
impl<'de> Deserialize<'de> for GoogleIdentityAccesscontextmanagerV1Condition
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleIdentityAccesscontextmanagerV1Condition
Auto Trait Implementations
impl RefUnwindSafe for GoogleIdentityAccesscontextmanagerV1Condition
impl Send for GoogleIdentityAccesscontextmanagerV1Condition
impl Sync for GoogleIdentityAccesscontextmanagerV1Condition
impl Unpin for GoogleIdentityAccesscontextmanagerV1Condition
impl UnwindSafe for GoogleIdentityAccesscontextmanagerV1Condition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more