#[non_exhaustive]pub struct SetLoggingServiceRequest {
pub project_id: String,
pub zone: String,
pub cluster_id: String,
pub logging_service: String,
pub name: String,
}Expand description
SetLoggingServiceRequest sets the logging service of a cluster.
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.project_id: StringDeprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
zone: StringDeprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the name field.
cluster_id: StringDeprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
logging_service: StringRequired. The logging service the cluster should use to write logs. Currently available options:
logging.googleapis.com/kubernetes- The Cloud Logging service with a Kubernetes-native resource modellogging.googleapis.com- The legacy Cloud Logging service (no longer available as of GKE 1.15).none- no logs will be exported from the cluster.
If left as an empty string,logging.googleapis.com/kubernetes will be
used for GKE 1.14+ or logging.googleapis.com for earlier versions.
name: StringThe name (project, location, cluster) of the cluster to set logging.
Specified in the format projects/*/locations/*/clusters/*.
Implementations§
Source§impl SetLoggingServiceRequest
impl SetLoggingServiceRequest
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
pub fn set_cluster_id<T: Into<String>>(self, v: T) -> Self
Sets the value of cluster_id.
Sourcepub fn set_logging_service<T: Into<String>>(self, v: T) -> Self
pub fn set_logging_service<T: Into<String>>(self, v: T) -> Self
Sets the value of logging_service.
Trait Implementations§
Source§impl Clone for SetLoggingServiceRequest
impl Clone for SetLoggingServiceRequest
Source§fn clone(&self) -> SetLoggingServiceRequest
fn clone(&self) -> SetLoggingServiceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more