Class SetLabelsRequest (2.6.0)

public sealed class SetLabelsRequest : IMessage<SetLabelsRequest>, IEquatable<SetLabelsRequest>, IDeepCloneable<SetLabelsRequest>, IBufferMessage, IMessage

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

Inheritance

Object > SetLabelsRequest

Namespace

Google.Cloud.Container.V1

Assembly

Google.Cloud.Container.V1.dll

Constructors

SetLabelsRequest()

public SetLabelsRequest()

SetLabelsRequest(SetLabelsRequest)

public SetLabelsRequest(SetLabelsRequest other)
Parameter
NameDescription
otherSetLabelsRequest

Properties

ClusterId

[Obsolete]
public string ClusterId { get; set; }

Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.

Property Value
TypeDescription
String

LabelFingerprint

public string LabelFingerprint { get; set; }

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.

Property Value
TypeDescription
String

Name

public string Name { get; set; }

The name (project, location, cluster id) of the cluster to set labels. Specified in the format projects/*/locations/*/clusters/*.

Property Value
TypeDescription
String

ProjectId

[Obsolete]
public string ProjectId { get; set; }

Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.

Property Value
TypeDescription
String

ResourceLabels

public MapField<string, string> ResourceLabels { get; }

Required. The labels to set for that cluster.

Property Value
TypeDescription
MapField<String, String>

Zone

[Obsolete]
public string Zone { get; set; }

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.

Property Value
TypeDescription
String