#[repr(i32)]pub enum VpcscPolicy {
Unspecified = 0,
Deny = 1,
Allow = 2,
}
Expand description
VPCSCPolicy is the VPC SC policy for project and location.
Variants§
Unspecified = 0
VPCSC_POLICY_UNSPECIFIED - the VPS SC policy is not defined. When VPS SC policy is not defined - the Service will use the default behavior (VPCSC_DENY).
Deny = 1
VPCSC_DENY - repository will block the requests to the Upstreams for the Remote Repositories if the resource is in the perimeter.
Allow = 2
VPCSC_ALLOW - repository will allow the requests to the Upstreams for the Remote Repositories if the resource is in the perimeter.
Implementations§
source§impl VpcscPolicy
impl VpcscPolicy
source§impl VpcscPolicy
impl VpcscPolicy
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for VpcscPolicy
impl Clone for VpcscPolicy
source§fn clone(&self) -> VpcscPolicy
fn clone(&self) -> VpcscPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VpcscPolicy
impl Debug for VpcscPolicy
source§impl Default for VpcscPolicy
impl Default for VpcscPolicy
source§fn default() -> VpcscPolicy
fn default() -> VpcscPolicy
source§impl From<VpcscPolicy> for i32
impl From<VpcscPolicy> for i32
source§fn from(value: VpcscPolicy) -> i32
fn from(value: VpcscPolicy) -> i32
source§impl Hash for VpcscPolicy
impl Hash for VpcscPolicy
source§impl Ord for VpcscPolicy
impl Ord for VpcscPolicy
source§fn cmp(&self, other: &VpcscPolicy) -> Ordering
fn cmp(&self, other: &VpcscPolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for VpcscPolicy
impl PartialEq for VpcscPolicy
source§fn eq(&self, other: &VpcscPolicy) -> bool
fn eq(&self, other: &VpcscPolicy) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VpcscPolicy
impl PartialOrd for VpcscPolicy
source§fn partial_cmp(&self, other: &VpcscPolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &VpcscPolicy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for VpcscPolicy
impl TryFrom<i32> for VpcscPolicy
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<VpcscPolicy, UnknownEnumValue>
fn try_from(value: i32) -> Result<VpcscPolicy, UnknownEnumValue>
impl Copy for VpcscPolicy
impl Eq for VpcscPolicy
impl StructuralPartialEq for VpcscPolicy
Auto Trait Implementations§
impl Freeze for VpcscPolicy
impl RefUnwindSafe for VpcscPolicy
impl Send for VpcscPolicy
impl Sync for VpcscPolicy
impl Unpin for VpcscPolicy
impl UnwindSafe for VpcscPolicy
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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