#[non_exhaustive]pub struct LoggingServer {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub hostname: String,
pub port: i32,
pub protocol: Protocol,
pub source_type: SourceType,
pub uid: String,
/* private fields */
}Expand description
Logging server to receive vCenter or ESXi logs.
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 resource name of this logging server.
Resource names are schemeless URIs that follow the conventions in
https://cloud.google.com/apis/design/resource_names.
For example:
projects/my-project/locations/us-central1-a/privateClouds/my-cloud/loggingServers/my-logging-server
create_time: Option<Timestamp>Output only. Creation time of this resource.
update_time: Option<Timestamp>Output only. Last update time of this resource.
hostname: StringRequired. Fully-qualified domain name (FQDN) or IP Address of the logging server.
port: i32Required. Port number at which the logging server receives logs.
protocol: ProtocolRequired. Protocol used by vCenter to send logs to a logging server.
source_type: SourceTypeRequired. The type of component that produces logs that will be forwarded to this logging server.
uid: StringOutput only. System-generated unique identifier for the resource.
Implementations§
Source§impl LoggingServer
impl LoggingServer
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_hostname<T: Into<String>>(self, v: T) -> Self
pub fn set_hostname<T: Into<String>>(self, v: T) -> Self
Sets the value of hostname.
Sourcepub fn set_protocol<T: Into<Protocol>>(self, v: T) -> Self
pub fn set_protocol<T: Into<Protocol>>(self, v: T) -> Self
Sets the value of protocol.
Sourcepub fn set_source_type<T: Into<SourceType>>(self, v: T) -> Self
pub fn set_source_type<T: Into<SourceType>>(self, v: T) -> Self
Sets the value of source_type.
Trait Implementations§
Source§impl Clone for LoggingServer
impl Clone for LoggingServer
Source§fn clone(&self) -> LoggingServer
fn clone(&self) -> LoggingServer
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more