Struct google_api_proto::google::cloud::securitycenter::settings::v1beta1::Settings
source · pub struct Settings {
pub name: String,
pub billing_settings: Option<BillingSettings>,
pub state: i32,
pub org_service_account: String,
pub sink_settings: Option<SinkSettings>,
pub component_settings: BTreeMap<String, ComponentSettings>,
pub detector_group_settings: BTreeMap<String, DetectorGroupSettings>,
pub etag: String,
pub update_time: Option<Timestamp>,
}
Expand description
Common configuration settings for all of Security Center.
Fields§
§name: String
The relative resource name of the settings resource. Formats:
organizations/{organization}/settings
folders/{folder}/settings
projects/{project}/settings
projects/{project}/locations/{location}/clusters/{cluster}/settings
projects/{project}/regions/{region}/clusters/{cluster}/settings
projects/{project}/zones/{zone}/clusters/{cluster}/settings
billing_settings: Option<BillingSettings>
Billing settings
state: i32
An enum representing the current on boarding state of SCC.
org_service_account: String
Output only. The organization-level service account to be used for security center components. The component must have permission to “act as” the service account.
sink_settings: Option<SinkSettings>
Sink settings.
component_settings: BTreeMap<String, ComponentSettings>
The settings for detectors and/or scanners.
detector_group_settings: BTreeMap<String, DetectorGroupSettings>
Detector group settings for all Security Center components. The key is the name of the detector group and the value is the settings for that group.
etag: String
A 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.
Implementations§
source§impl Settings
impl Settings
sourcepub fn state(&self) -> OnboardingState
pub fn state(&self) -> OnboardingState
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: OnboardingState)
pub fn set_state(&mut self, value: OnboardingState)
Sets state
to the provided enum value.
Trait Implementations§
source§impl Message for Settings
impl Message for Settings
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 Settings
impl PartialEq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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