pub struct EgressFrom {
pub identities: Option<Vec<String>>,
pub identity_type: Option<String>,
pub source_restriction: Option<String>,
pub sources: Option<Vec<EgressSource>>,
}Expand description
Defines the conditions under which an EgressPolicy matches a request. Conditions based on information about the source of the request. Note that if the destination of the request is also protected by a ServicePerimeter, then that ServicePerimeter must have an IngressPolicy which allows access in order for this request to succeed.
This type is not used in any activity, and only used as part of another schema.
Fields§
§identities: Option<Vec<String>>A list of identities that are allowed access through EgressPolicy. Identities can be an individual user, service account, Google group, or third-party identity. The v1 identities that have the prefix user, group, serviceAccount, principal, and principalSet in https://cloud.google.com/iam/docs/principal-identifiers#v1 are supported.
identity_type: Option<String>Specifies the type of identities that are allowed access to outside the perimeter. If left unspecified, then members of identities field will be allowed access.
source_restriction: Option<String>Whether to enforce traffic restrictions based on sources field. If the sources fields is non-empty, then this field must be set to SOURCE_RESTRICTION_ENABLED.
sources: Option<Vec<EgressSource>>Sources that this EgressPolicy authorizes access from. If this field is not empty, then source_restriction must be set to SOURCE_RESTRICTION_ENABLED.
Trait Implementations§
Source§impl Clone for EgressFrom
impl Clone for EgressFrom
Source§fn clone(&self) -> EgressFrom
fn clone(&self) -> EgressFrom
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EgressFrom
impl Debug for EgressFrom
Source§impl Default for EgressFrom
impl Default for EgressFrom
Source§fn default() -> EgressFrom
fn default() -> EgressFrom
Source§impl<'de> Deserialize<'de> for EgressFrom
impl<'de> Deserialize<'de> for EgressFrom
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 EgressFrom
impl Serialize for EgressFrom
impl Part for EgressFrom
Auto Trait Implementations§
impl Freeze for EgressFrom
impl RefUnwindSafe for EgressFrom
impl Send for EgressFrom
impl Sync for EgressFrom
impl Unpin for EgressFrom
impl UnwindSafe for EgressFrom
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