Class SetNetworkPolicyRequest
SetNetworkPolicyRequest enables/disables network policy for a cluster.
Implements
Inherited Members
Namespace: Google.Apis.Container.v1beta1.Data
Assembly: Google.Apis.Container.v1beta1.dll
Syntax
public class SetNetworkPolicyRequest : 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 |
Name
The name (project, location, cluster name) of the cluster to set networking policy. Specified in the format
projects/*/locations/*/clusters/*
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
NetworkPolicy
Required. Configuration options for the NetworkPolicy feature.
Declaration
[JsonProperty("networkPolicy")]
public virtual NetworkPolicy NetworkPolicy { get; set; }
Property Value
Type | Description |
---|---|
NetworkPolicy |
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 |
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 |