Struct google_api_proto::google::cloud::gkehub::configmanagement::v1::PolicyController
source · pub struct PolicyController {
pub enabled: bool,
pub template_library_installed: Option<bool>,
pub audit_interval_seconds: Option<i64>,
pub exemptable_namespaces: Vec<String>,
pub referential_rules_enabled: bool,
pub log_denies_enabled: bool,
}
Expand description
Configuration for Policy Controller
Fields§
§enabled: bool
Enables the installation of Policy Controller. If false, the rest of PolicyController fields take no effect.
template_library_installed: Option<bool>
Installs the default template library along with Policy Controller.
audit_interval_seconds: Option<i64>
Sets the interval for Policy Controller Audit Scans (in seconds). When set to 0, this disables audit functionality altogether.
exemptable_namespaces: Vec<String>
The set of namespaces that are excluded from Policy Controller checks. Namespaces do not need to currently exist on the cluster.
referential_rules_enabled: bool
Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.
log_denies_enabled: bool
Logs all denies and dry run failures.
Implementations§
source§impl PolicyController
impl PolicyController
sourcepub fn template_library_installed(&self) -> bool
pub fn template_library_installed(&self) -> bool
Returns the value of template_library_installed
, or the default value if template_library_installed
is unset.
sourcepub fn audit_interval_seconds(&self) -> i64
pub fn audit_interval_seconds(&self) -> i64
Returns the value of audit_interval_seconds
, or the default value if audit_interval_seconds
is unset.
Trait Implementations§
source§impl Clone for PolicyController
impl Clone for PolicyController
source§fn clone(&self) -> PolicyController
fn clone(&self) -> PolicyController
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PolicyController
impl Debug for PolicyController
source§impl Default for PolicyController
impl Default for PolicyController
source§impl Message for PolicyController
impl Message for PolicyController
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 PolicyController
impl PartialEq for PolicyController
source§fn eq(&self, other: &PolicyController) -> bool
fn eq(&self, other: &PolicyController) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PolicyController
Auto Trait Implementations§
impl Freeze for PolicyController
impl RefUnwindSafe for PolicyController
impl Send for PolicyController
impl Sync for PolicyController
impl Unpin for PolicyController
impl UnwindSafe for PolicyController
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