#[non_exhaustive]pub struct SetLabelsRequest {
pub project_id: String,
pub zone: String,
pub cluster_id: String,
pub resource_labels: HashMap<String, String>,
pub label_fingerprint: String,
pub name: String,
}Expand description
SetLabelsRequest sets the Google Cloud Platform labels on a Google Container Engine cluster, which will in turn set them for Google Compute Engine resources used by that 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. This field has been deprecated and replaced by the name field.
resource_labels: HashMap<String, String>Required. The labels to set for that cluster.
label_fingerprint: StringRequired. The fingerprint of the previous set of labels for this resource,
used to detect conflicts. The fingerprint is initially generated by
Kubernetes Engine and changes after every request to modify or update
labels. You must always provide an up-to-date fingerprint hash when
updating or changing labels. Make a get() request to the
resource to get the latest fingerprint.
name: StringThe name (project, location, cluster name) of the cluster to set labels.
Specified in the format projects/*/locations/*/clusters/*.
Implementations§
Source§impl SetLabelsRequest
impl SetLabelsRequest
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_label_fingerprint<T: Into<String>>(self, v: T) -> Self
pub fn set_label_fingerprint<T: Into<String>>(self, v: T) -> Self
Sets the value of label_fingerprint.
Sourcepub fn set_resource_labels<T, K, V>(self, v: T) -> Self
pub fn set_resource_labels<T, K, V>(self, v: T) -> Self
Sets the value of resource_labels.
Trait Implementations§
Source§impl Clone for SetLabelsRequest
impl Clone for SetLabelsRequest
Source§fn clone(&self) -> SetLabelsRequest
fn clone(&self) -> SetLabelsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more