#[non_exhaustive]pub struct Endpoint {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub network: String,
pub endpoint_forwarding_rule: String,
pub endpoint_ip: String,
pub description: String,
pub severity: Severity,
pub state: State,
pub traffic_logs: bool,
/* private fields */
}Expand description
Endpoint describes a single IDS endpoint. It defines a forwarding rule to which packets can be sent for IDS inspection.
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.name: StringOutput only. The name of the endpoint.
create_time: Option<Timestamp>Output only. The create time timestamp.
update_time: Option<Timestamp>Output only. The update time timestamp.
labels: HashMap<String, String>The labels of the endpoint.
network: StringRequired. The fully qualified URL of the network to which the IDS Endpoint is attached.
endpoint_forwarding_rule: StringOutput only. The fully qualified URL of the endpoint’s ILB Forwarding Rule.
endpoint_ip: StringOutput only. The IP address of the IDS Endpoint’s ILB.
description: StringUser-provided description of the endpoint
severity: SeverityRequired. Lowest threat severity that this endpoint will alert on.
state: StateOutput only. Current state of the endpoint.
traffic_logs: boolWhether the endpoint should report traffic logs in addition to threat logs.
Implementations§
Source§impl Endpoint
impl Endpoint
pub fn new() -> Self
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_network<T: Into<String>>(self, v: T) -> Self
pub fn set_network<T: Into<String>>(self, v: T) -> Self
Sets the value of network.
Sourcepub fn set_endpoint_forwarding_rule<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint_forwarding_rule<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint_forwarding_rule.
Sourcepub fn set_endpoint_ip<T: Into<String>>(self, v: T) -> Self
pub fn set_endpoint_ip<T: Into<String>>(self, v: T) -> Self
Sets the value of endpoint_ip.
Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sets the value of description.
Sourcepub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
pub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
Sets the value of severity.
Sourcepub fn set_traffic_logs<T: Into<bool>>(self, v: T) -> Self
pub fn set_traffic_logs<T: Into<bool>>(self, v: T) -> Self
Sets the value of traffic_logs.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.