#[non_exhaustive]pub struct ManagedRuleset {
pub change_log: Option<String>,
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub id: Option<u64>,
pub name: Option<String>,
pub rule_ids: Vec<String>,
pub ruleset_id: Option<String>,
pub self_link: Option<String>,
/* private fields */
}managed-rulesets only.Expand description
Represents a ManagedRuleset resource.
Managed internally by Cloud Armor CLH for Managed Rules features. Customers can only view these resources to modify their Security Policies. For more information, see https://cloud.google.com/armor/docs/.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.change_log: Option<String>Output only. [Output Only] The change log for this managed ruleset.
creation_timestamp: Option<String>Output only. [Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>[Output Only] An optional description of this resource.
id: Option<u64>Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.
name: Option<String>Name of the resource. Generated internally when the resource is created.
The name must be 1-63 characters long, and comply withRFC1035.
Specifically, the name must be 1-63 characters long and match the regular
expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first
character must be a lowercase letter, and all following characters must
be a dash, lowercase letter, or digit, except the last character, which
cannot be a dash.
rule_ids: Vec<String>Output only. [Output Only] The list of managed rule IDs that are included in this managed ruleset.
ruleset_id: Option<String>Output only. [Output Only] The managed ruleset identifier that can be configured in Security Policy rules.
self_link: Option<String>Output only. [Output Only] Server-defined URL for the resource.
Implementations§
Source§impl ManagedRuleset
impl ManagedRuleset
Sourcepub fn set_change_log<T>(self, v: T) -> Self
pub fn set_change_log<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_change_log<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_change_log<T>(self, v: Option<T>) -> Self
Sets or clears the value of change_log.
§Example
let x = ManagedRuleset::new().set_or_clear_change_log(Some("example"));
let x = ManagedRuleset::new().set_or_clear_change_log(None::<String>);Sourcepub fn set_creation_timestamp<T>(self, v: T) -> Self
pub fn set_creation_timestamp<T>(self, v: T) -> Self
Sets the value of creation_timestamp.
§Example
let x = ManagedRuleset::new().set_creation_timestamp("example");Sourcepub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creation_timestamp<T>(self, v: Option<T>) -> Self
Sets or clears the value of creation_timestamp.
§Example
let x = ManagedRuleset::new().set_or_clear_creation_timestamp(Some("example"));
let x = ManagedRuleset::new().set_or_clear_creation_timestamp(None::<String>);Sourcepub fn set_description<T>(self, v: T) -> Self
pub fn set_description<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_description<T>(self, v: Option<T>) -> Self
Sets or clears the value of description.
§Example
let x = ManagedRuleset::new().set_or_clear_description(Some("example"));
let x = ManagedRuleset::new().set_or_clear_description(None::<String>);Sourcepub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_id<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_name<T>(self, v: Option<T>) -> Self
Sourcepub fn set_rule_ids<T, V>(self, v: T) -> Self
pub fn set_rule_ids<T, V>(self, v: T) -> Self
Sourcepub fn set_ruleset_id<T>(self, v: T) -> Self
pub fn set_ruleset_id<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_ruleset_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_ruleset_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of ruleset_id.
§Example
let x = ManagedRuleset::new().set_or_clear_ruleset_id(Some("example"));
let x = ManagedRuleset::new().set_or_clear_ruleset_id(None::<String>);Sourcepub fn set_self_link<T>(self, v: T) -> Self
pub fn set_self_link<T>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for ManagedRuleset
impl Clone for ManagedRuleset
Source§impl Debug for ManagedRuleset
impl Debug for ManagedRuleset
Source§impl Default for ManagedRuleset
impl Default for ManagedRuleset
Source§impl Message for ManagedRuleset
impl Message for ManagedRuleset
Source§impl PartialEq for ManagedRuleset
impl PartialEq for ManagedRuleset
impl StructuralPartialEq for ManagedRuleset
Auto Trait Implementations§
impl Freeze for ManagedRuleset
impl RefUnwindSafe for ManagedRuleset
impl Send for ManagedRuleset
impl Sync for ManagedRuleset
impl Unpin for ManagedRuleset
impl UnsafeUnpin for ManagedRuleset
impl UnwindSafe for ManagedRuleset
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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