Class SetLabelsRequest (2.37.0)

SetLabelsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
project_id str
Deprecated. The Google Developers Console `project ID or project number
zone str
Deprecated. 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 str
Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
resource_labels MutableMapping[str, str]
Required. The labels to set for that cluster.
label_fingerprint str
Required. 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 str
The name (project, location, cluster name) of the cluster to set labels. Specified in the format projects/*/locations/*/clusters/*.

Classes

ResourceLabelsEntry

ResourceLabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.