Google Kubernetes Engine v1 API - Class SetNetworkPolicyRequest (3.26.0)

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

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

SetNetworkPolicyRequest enables/disables network policy for a cluster.

Inheritance

object > SetNetworkPolicyRequest

Namespace

Google.Cloud.Container.V1

Assembly

Google.Cloud.Container.V1.dll

Constructors

SetNetworkPolicyRequest()

public SetNetworkPolicyRequest()

SetNetworkPolicyRequest(SetNetworkPolicyRequest)

public SetNetworkPolicyRequest(SetNetworkPolicyRequest other)
Parameter
Name Description
other SetNetworkPolicyRequest

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
Type Description
string

Name

public string Name { get; set; }

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

Property Value
Type Description
string

NetworkPolicy

public NetworkPolicy NetworkPolicy { get; set; }

Required. Configuration options for the NetworkPolicy feature.

Property Value
Type Description
NetworkPolicy

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
Type Description
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
Type Description
string