Google Kubernetes Engine v1 API - Class SetLabelsRequest (3.9.0)

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

GoogleGoogle.CloudGoogle.Cloud.ContainerV1

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
MapFieldstringstring

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