Struct google_api_proto::google::cloud::securitycenter::settings::v1beta1::ComponentSettings
source · pub struct ComponentSettings {
pub name: String,
pub state: i32,
pub project_service_account: String,
pub detector_settings: BTreeMap<String, DetectorSettings>,
pub etag: String,
pub update_time: Option<Timestamp>,
pub specific_settings: Option<SpecificSettings>,
}
Expand description
Component Settings for Security Command Center
Fields§
§name: String
The relative resource name of the component settings. Formats:
organizations/{organization}/components/{component}/settings
folders/{folder}/components/{component}/settings
projects/{project}/components/{component}/settings
projects/{project}/locations/{location}/clusters/{cluster}/components/{component}/settings
projects/{project}/regions/{region}/clusters/{cluster}/components/{component}/settings
projects/{project}/zones/{zone}/clusters/{cluster}/components/{component}/settings
state: i32
ENABLE to enable component, DISABLE to disable and INHERIT to inherit setting from ancestors.
project_service_account: String
Output only. The service account to be used for security center component. The component must have permission to “act as” the service account.
detector_settings: BTreeMap<String, DetectorSettings>
Settings for detectors. Not all detectors must have settings present at each and every level in the hierarchy. If it is not present the setting will be inherited from its ancestors folders, organizations or the defaults.
etag: String
Output only. An fingerprint used for optimistic concurrency. If none is provided on updates then the existing metadata will be blindly overwritten.
update_time: Option<Timestamp>
Output only. The time these settings were last updated.
specific_settings: Option<SpecificSettings>
Component specific settings. This must match the component value.
Implementations§
source§impl ComponentSettings
impl ComponentSettings
sourcepub fn state(&self) -> ComponentEnablementState
pub fn state(&self) -> ComponentEnablementState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: ComponentEnablementState)
pub fn set_state(&mut self, value: ComponentEnablementState)
Sets state
to the provided enum value.
Trait Implementations§
source§impl Clone for ComponentSettings
impl Clone for ComponentSettings
source§fn clone(&self) -> ComponentSettings
fn clone(&self) -> ComponentSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ComponentSettings
impl Debug for ComponentSettings
source§impl Default for ComponentSettings
impl Default for ComponentSettings
source§impl Message for ComponentSettings
impl Message for ComponentSettings
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 ComponentSettings
impl PartialEq for ComponentSettings
source§fn eq(&self, other: &ComponentSettings) -> bool
fn eq(&self, other: &ComponentSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ComponentSettings
Auto Trait Implementations§
impl Freeze for ComponentSettings
impl RefUnwindSafe for ComponentSettings
impl Send for ComponentSettings
impl Sync for ComponentSettings
impl Unpin for ComponentSettings
impl UnwindSafe for ComponentSettings
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