#[non_exhaustive]pub struct SecurityBulletinEvent {
pub resource_type_affected: String,
pub bulletin_id: String,
pub cve_ids: Vec<String>,
pub severity: String,
pub bulletin_uri: String,
pub brief_description: String,
pub affected_supported_minors: Vec<String>,
pub patched_versions: Vec<String>,
pub suggested_upgrade_target: String,
pub manual_steps_required: bool,
pub mitigated_versions: Vec<String>,
/* private fields */
}Expand description
SecurityBulletinEvent is a notification sent to customers when a security bulletin has been posted that they are vulnerable to.
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.resource_type_affected: StringThe resource type (node/control plane) that has the vulnerability. Multiple notifications (1 notification per resource type) will be sent for a vulnerability that affects > 1 resource type.
bulletin_id: StringThe ID of the bulletin corresponding to the vulnerability.
cve_ids: Vec<String>The CVEs associated with this bulletin.
severity: StringThe severity of this bulletin as it relates to GKE.
bulletin_uri: StringThe URI link to the bulletin on the website for more information.
brief_description: StringA brief description of the bulletin. See the bulletin pointed to by the bulletin_uri field for an expanded description.
affected_supported_minors: Vec<String>The GKE minor versions affected by this vulnerability.
patched_versions: Vec<String>The GKE versions where this vulnerability is patched.
suggested_upgrade_target: StringThis represents a version selected from the patched_versions field that the cluster receiving this notification should most likely want to upgrade to based on its current version. Note that if this notification is being received by a given cluster, it means that this version is currently available as an upgrade target in that cluster’s location.
manual_steps_required: boolIf this field is specified, it means there are manual steps that the user must take to make their clusters safe.
mitigated_versions: Vec<String>The GKE versions where this vulnerability is mitigated.
Implementations§
Source§impl SecurityBulletinEvent
impl SecurityBulletinEvent
pub fn new() -> Self
Sourcepub fn set_resource_type_affected<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_type_affected<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_type_affected.
§Example
let x = SecurityBulletinEvent::new().set_resource_type_affected("example");Sourcepub fn set_bulletin_id<T: Into<String>>(self, v: T) -> Self
pub fn set_bulletin_id<T: Into<String>>(self, v: T) -> Self
Sets the value of bulletin_id.
§Example
let x = SecurityBulletinEvent::new().set_bulletin_id("example");Sourcepub fn set_cve_ids<T, V>(self, v: T) -> Self
pub fn set_cve_ids<T, V>(self, v: T) -> Self
Sourcepub fn set_severity<T: Into<String>>(self, v: T) -> Self
pub fn set_severity<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_bulletin_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_bulletin_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of bulletin_uri.
§Example
let x = SecurityBulletinEvent::new().set_bulletin_uri("example");Sourcepub fn set_brief_description<T: Into<String>>(self, v: T) -> Self
pub fn set_brief_description<T: Into<String>>(self, v: T) -> Self
Sets the value of brief_description.
§Example
let x = SecurityBulletinEvent::new().set_brief_description("example");Sourcepub fn set_affected_supported_minors<T, V>(self, v: T) -> Self
pub fn set_affected_supported_minors<T, V>(self, v: T) -> Self
Sets the value of affected_supported_minors.
§Example
let x = SecurityBulletinEvent::new().set_affected_supported_minors(["a", "b", "c"]);Sourcepub fn set_patched_versions<T, V>(self, v: T) -> Self
pub fn set_patched_versions<T, V>(self, v: T) -> Self
Sets the value of patched_versions.
§Example
let x = SecurityBulletinEvent::new().set_patched_versions(["a", "b", "c"]);Sourcepub fn set_suggested_upgrade_target<T: Into<String>>(self, v: T) -> Self
pub fn set_suggested_upgrade_target<T: Into<String>>(self, v: T) -> Self
Sets the value of suggested_upgrade_target.
§Example
let x = SecurityBulletinEvent::new().set_suggested_upgrade_target("example");Sourcepub fn set_manual_steps_required<T: Into<bool>>(self, v: T) -> Self
pub fn set_manual_steps_required<T: Into<bool>>(self, v: T) -> Self
Sets the value of manual_steps_required.
§Example
let x = SecurityBulletinEvent::new().set_manual_steps_required(true);Sourcepub fn set_mitigated_versions<T, V>(self, v: T) -> Self
pub fn set_mitigated_versions<T, V>(self, v: T) -> Self
Sets the value of mitigated_versions.
§Example
let x = SecurityBulletinEvent::new().set_mitigated_versions(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for SecurityBulletinEvent
impl Clone for SecurityBulletinEvent
Source§fn clone(&self) -> SecurityBulletinEvent
fn clone(&self) -> SecurityBulletinEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more