public sealed class NetworkPolicy : IMessage<NetworkPolicy>, IEquatable<NetworkPolicy>, IDeepCloneable<NetworkPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class NetworkPolicy.
Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Implements
IMessageNetworkPolicy, IEquatableNetworkPolicy, IDeepCloneableNetworkPolicy, IBufferMessage, IMessageNamespace
GoogleGoogle.CloudGoogle.Cloud.ContainerV1Assembly
Google.Cloud.Container.V1.dll
Constructors
NetworkPolicy()
public NetworkPolicy()
NetworkPolicy(NetworkPolicy)
public NetworkPolicy(NetworkPolicy other)
Parameter | |
---|---|
Name | Description |
other | NetworkPolicy |
Properties
Enabled
public bool Enabled { get; set; }
Whether network policy is enabled on the cluster.
Property Value | |
---|---|
Type | Description |
bool |
Provider
public NetworkPolicy.Types.Provider Provider { get; set; }
The selected network policy provider.
Property Value | |
---|---|
Type | Description |
NetworkPolicyTypesProvider |