Google Kubernetes Engine v1 API - Class SetLabelsRequest (3.2.0)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class SetLabelsRequest : IMessage<SetLabelsRequest>, IEquatable<SetLabelsRequest>, IDeepCloneable<SetLabelsRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Kubernetes Engine v1 API class SetLabelsRequest.

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 name) 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