pub struct IngressSource {
pub access_level: Option<String>,
pub resource: Option<String>,
}
Expand description
The source that IngressPolicy authorizes access from.
This type is not used in any activity, and only used as part of another schema.
Fields§
§access_level: Option<String>
An AccessLevel resource name that allow resources within the ServicePerimeters to be accessed from the internet. AccessLevels listed must be in the same policy as this ServicePerimeter. Referencing a nonexistent AccessLevel will cause an error. If no AccessLevel names are listed, resources within the perimeter can only be accessed via Google Cloud calls with request origins within the perimeter. Example: accessPolicies/MY_POLICY/accessLevels/MY_LEVEL
. If a single *
is specified for access_level
, then all IngressSources will be allowed.
resource: Option<String>
A Google Cloud resource that is allowed to ingress the perimeter. Requests from these resources will be allowed to access perimeter data. Currently only projects and VPCs are allowed. Project format: projects/{project_number}
VPC network format: //compute.googleapis.com/projects/{PROJECT_ID}/global/networks/{NAME}
. The project may be in any Google Cloud organization, not just the organization that the perimeter is defined in. *
is not allowed, the case of allowing all Google Cloud resources only is not supported.
Trait Implementations§
Source§impl Clone for IngressSource
impl Clone for IngressSource
Source§fn clone(&self) -> IngressSource
fn clone(&self) -> IngressSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IngressSource
impl Debug for IngressSource
Source§impl Default for IngressSource
impl Default for IngressSource
Source§fn default() -> IngressSource
fn default() -> IngressSource
Source§impl<'de> Deserialize<'de> for IngressSource
impl<'de> Deserialize<'de> for IngressSource
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 IngressSource
impl Serialize for IngressSource
impl Part for IngressSource
Auto Trait Implementations§
impl Freeze for IngressSource
impl RefUnwindSafe for IngressSource
impl Send for IngressSource
impl Sync for IngressSource
impl Unpin for IngressSource
impl UnwindSafe for IngressSource
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