pub struct IngressTo {
pub operations: Option<Vec<ApiOperation>>,
pub resources: Option<Vec<String>>,
}
Expand description
Defines the conditions under which an IngressPolicy matches a request. Conditions are based on information about the ApiOperation intended to be performed on the target resource of the request. The request must satisfy what is defined in operations
AND resources
in order to match.
This type is not used in any activity, and only used as part of another schema.
Fields§
§operations: Option<Vec<ApiOperation>>
A list of ApiOperations allowed to be performed by the sources specified in corresponding IngressFrom in this ServicePerimeter.
resources: Option<Vec<String>>
A list of resources, currently only projects in the form projects/
, protected by this ServicePerimeter that are allowed to be accessed by sources defined in the corresponding IngressFrom. If a single *
is specified, then access to all resources inside the perimeter are allowed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IngressTo
impl<'de> Deserialize<'de> for IngressTo
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>,
impl Part for IngressTo
Auto Trait Implementations§
impl Freeze for IngressTo
impl RefUnwindSafe for IngressTo
impl Send for IngressTo
impl Sync for IngressTo
impl Unpin for IngressTo
impl UnwindSafe for IngressTo
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