Class NetworkPolicy (2.6.0)

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

Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/

Inheritance

Object > NetworkPolicy

Namespace

Google.Cloud.Container.V1

Assembly

Google.Cloud.Container.V1.dll

Constructors

NetworkPolicy()

public NetworkPolicy()

NetworkPolicy(NetworkPolicy)

public NetworkPolicy(NetworkPolicy other)
Parameter
NameDescription
otherNetworkPolicy

Properties

Enabled

public bool Enabled { get; set; }

Whether network policy is enabled on the cluster.

Property Value
TypeDescription
Boolean

Provider

public NetworkPolicy.Types.Provider Provider { get; set; }

The selected network policy provider.

Property Value
TypeDescription
NetworkPolicy.Types.Provider