pub struct IngressPolicy {
pub ingress_from: Option<IngressFrom>,
pub ingress_to: Option<IngressTo>,
}
Expand description
Policy for ingress into ServicePerimeter. IngressPolicies match requests based on ingress_from
and ingress_to
stanzas. For an ingress policy to match, both the ingress_from
and ingress_to
stanzas must be matched. If an IngressPolicy matches a request, the request is allowed through the perimeter boundary from outside the perimeter. For example, access from the internet can be allowed either based on an AccessLevel or, for traffic hosted on Google Cloud, the project of the source network. For access from private networks, using the project of the hosting network is required. Individual ingress policies can be limited by restricting which services and/or actions they match using the ingress_to
field.
This type is not used in any activity, and only used as part of another schema.
Fields§
§ingress_from: Option<IngressFrom>
Defines the conditions on the source of a request causing this IngressPolicy to apply.
ingress_to: Option<IngressTo>
Defines the conditions on the ApiOperation and request destination that cause this IngressPolicy to apply.
Trait Implementations§
Source§impl Clone for IngressPolicy
impl Clone for IngressPolicy
Source§fn clone(&self) -> IngressPolicy
fn clone(&self) -> IngressPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IngressPolicy
impl Debug for IngressPolicy
Source§impl Default for IngressPolicy
impl Default for IngressPolicy
Source§fn default() -> IngressPolicy
fn default() -> IngressPolicy
Source§impl<'de> Deserialize<'de> for IngressPolicy
impl<'de> Deserialize<'de> for IngressPolicy
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 IngressPolicy
impl Serialize for IngressPolicy
impl Part for IngressPolicy
Auto Trait Implementations§
impl Freeze for IngressPolicy
impl RefUnwindSafe for IngressPolicy
impl Send for IngressPolicy
impl Sync for IngressPolicy
impl Unpin for IngressPolicy
impl UnwindSafe for IngressPolicy
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