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
Implements
Inherited Members
Namespace: Google.Apis.Container.v1beta1.Data
Assembly: Google.Apis.Container.v1beta1.dll
Syntax
public class SetLabelsRequest : IDirectResponseSchema
Properties
ClusterId
Required. Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
Declaration
[JsonProperty("clusterId")]
public virtual string ClusterId { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
LabelFingerprint
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.
Declaration
[JsonProperty("labelFingerprint")]
public virtual string LabelFingerprint { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
The name (project, location, cluster name) of the cluster to set labels. Specified in the format
projects/*/locations/*/clusters/*
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ProjectId
Required. Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.
Declaration
[JsonProperty("projectId")]
public virtual string ProjectId { get; set; }
Property Value
Type | Description |
---|---|
string |
ResourceLabels
Required. The labels to set for that cluster.
Declaration
[JsonProperty("resourceLabels")]
public virtual IDictionary<string, string> ResourceLabels { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, string> |
Zone
Required. 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.
Declaration
[JsonProperty("zone")]
public virtual string Zone { get; set; }
Property Value
Type | Description |
---|---|
string |