Struct google_api_proto::google::identity::accesscontextmanager::v1::ServicePerimeter
source · pub struct ServicePerimeter {
pub name: String,
pub title: String,
pub description: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub perimeter_type: i32,
pub status: Option<ServicePerimeterConfig>,
pub spec: Option<ServicePerimeterConfig>,
pub use_explicit_dry_run_spec: bool,
}
Expand description
ServicePerimeter
describes a set of Google Cloud resources which can freely
import and export data amongst themselves, but not export outside of the
ServicePerimeter
. If a request with a source within this ServicePerimeter
has a target outside of the ServicePerimeter
, the request will be blocked.
Otherwise the request is allowed. There are two types of Service Perimeter -
Regular and Bridge. Regular Service Perimeters cannot overlap, a single
Google Cloud project can only belong to a single regular Service Perimeter.
Service Perimeter Bridges can contain only Google Cloud projects as members,
a single Google Cloud project may belong to multiple Service Perimeter
Bridges.
Fields§
§name: String
Required. Resource name for the ServicePerimeter. The short_name
component must begin with a letter and only include alphanumeric and ‘_’.
Format:
accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}
title: String
Human readable title. Must be unique within the Policy.
description: String
Description of the ServicePerimeter
and its use. Does not affect
behavior.
create_time: Option<Timestamp>
Output only. Time the ServicePerimeter
was created in UTC.
update_time: Option<Timestamp>
Output only. Time the ServicePerimeter
was updated in UTC.
perimeter_type: i32
Perimeter type indicator. A single project is allowed to be a member of single regular perimeter, but multiple service perimeter bridges. A project cannot be a included in a perimeter bridge without being included in regular perimeter. For perimeter bridges, the restricted service list as well as access level lists must be empty.
status: Option<ServicePerimeterConfig>
Current ServicePerimeter configuration. Specifies sets of resources, restricted services and access levels that determine perimeter content and boundaries.
spec: Option<ServicePerimeterConfig>
Proposed (or dry run) ServicePerimeter configuration. This configuration allows to specify and test ServicePerimeter configuration without enforcing actual access restrictions. Only allowed to be set when the “use_explicit_dry_run_spec” flag is set.
use_explicit_dry_run_spec: bool
Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration (“spec”) to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config (“status”) without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. use_explicit_dry_run_spec must bet set to True if any of the fields in the spec are set to non-default values.
Implementations§
source§impl ServicePerimeter
impl ServicePerimeter
sourcepub fn perimeter_type(&self) -> PerimeterType
pub fn perimeter_type(&self) -> PerimeterType
Returns the enum value of perimeter_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_perimeter_type(&mut self, value: PerimeterType)
pub fn set_perimeter_type(&mut self, value: PerimeterType)
Sets perimeter_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ServicePerimeter
impl Clone for ServicePerimeter
source§fn clone(&self) -> ServicePerimeter
fn clone(&self) -> ServicePerimeter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServicePerimeter
impl Debug for ServicePerimeter
source§impl Default for ServicePerimeter
impl Default for ServicePerimeter
source§impl Message for ServicePerimeter
impl Message for ServicePerimeter
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ServicePerimeter
impl PartialEq for ServicePerimeter
source§fn eq(&self, other: &ServicePerimeter) -> bool
fn eq(&self, other: &ServicePerimeter) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServicePerimeter
Auto Trait Implementations§
impl Freeze for ServicePerimeter
impl RefUnwindSafe for ServicePerimeter
impl Send for ServicePerimeter
impl Sync for ServicePerimeter
impl Unpin for ServicePerimeter
impl UnwindSafe for ServicePerimeter
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request