pub struct SecurityCenterService {
pub name: String,
pub intended_enablement_state: i32,
pub effective_enablement_state: i32,
pub modules: BTreeMap<String, ModuleSettings>,
pub update_time: Option<Timestamp>,
pub service_config: Option<Struct>,
}
Expand description
Represents a particular Security Command Center service. This includes settings information such as top-level enablement in addition to individual module settings. Service settings can be configured at the organization, folder, or project level. Service settings at the organization or folder level are inherited by those in child folders and projects.
Fields§
§name: String
Identifier. The name of the service.
Its format is:
- organizations/{organization}/locations/{location}/securityCenterServices/{service}
- folders/{folder}/locations/{location}/securityCenterServices/{service}
- projects/{project}/locations/{location}/securityCenterServices/{service}
The possible values for id {service} are:
- container-threat-detection
- event-threat-detection
- security-health-analytics
- vm-threat-detection
- web-security-scanner
intended_enablement_state: i32
Optional. The intended state of enablement for the service at its level of the resource hierarchy. A DISABLED state will override all module enablement_states to DISABLED.
effective_enablement_state: i32
Output only. The effective enablement state for the service at its level of the resource hierarchy. If the intended state is set to INHERITED, the effective state will be inherited from the enablement state of an ancestor. This state may differ from the intended enablement state due to billing eligibility or onboarding status.
modules: BTreeMap<String, ModuleSettings>
Optional. The configurations including the state of enablement for the service’s different modules. The absence of a module in the map implies its configuration is inherited from its parents.
update_time: Option<Timestamp>
Output only. The time the service was last updated. This could be due to an explicit user update or due to a side effect of another system change such as billing subscription expiry.
service_config: Option<Struct>
Optional. Additional service specific configuration. Not all services will utilize this field.
Implementations§
source§impl SecurityCenterService
impl SecurityCenterService
sourcepub fn intended_enablement_state(&self) -> EnablementState
pub fn intended_enablement_state(&self) -> EnablementState
Returns the enum value of intended_enablement_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_intended_enablement_state(&mut self, value: EnablementState)
pub fn set_intended_enablement_state(&mut self, value: EnablementState)
Sets intended_enablement_state
to the provided enum value.
sourcepub fn effective_enablement_state(&self) -> EnablementState
pub fn effective_enablement_state(&self) -> EnablementState
Returns the enum value of effective_enablement_state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_effective_enablement_state(&mut self, value: EnablementState)
pub fn set_effective_enablement_state(&mut self, value: EnablementState)
Sets effective_enablement_state
to the provided enum value.
Trait Implementations§
source§impl Clone for SecurityCenterService
impl Clone for SecurityCenterService
source§fn clone(&self) -> SecurityCenterService
fn clone(&self) -> SecurityCenterService
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecurityCenterService
impl Debug for SecurityCenterService
source§impl Default for SecurityCenterService
impl Default for SecurityCenterService
source§impl Message for SecurityCenterService
impl Message for SecurityCenterService
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 SecurityCenterService
impl PartialEq for SecurityCenterService
source§fn eq(&self, other: &SecurityCenterService) -> bool
fn eq(&self, other: &SecurityCenterService) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SecurityCenterService
Auto Trait Implementations§
impl Freeze for SecurityCenterService
impl RefUnwindSafe for SecurityCenterService
impl Send for SecurityCenterService
impl Sync for SecurityCenterService
impl Unpin for SecurityCenterService
impl UnwindSafe for SecurityCenterService
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