Reference documentation and code samples for the Kubernetes Engine V1 API class Google::Cloud::Container::V1::NetworkPolicy.
Configuration options for the NetworkPolicy feature. https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#enabled
def enabled() -> ::Boolean
Returns
- (::Boolean) — Whether network policy is enabled on the cluster.
#enabled=
def enabled=(value) -> ::Boolean
Parameter
- value (::Boolean) — Whether network policy is enabled on the cluster.
Returns
- (::Boolean) — Whether network policy is enabled on the cluster.
#provider
def provider() -> ::Google::Cloud::Container::V1::NetworkPolicy::Provider
Returns
- (::Google::Cloud::Container::V1::NetworkPolicy::Provider) — The selected network policy provider.
#provider=
def provider=(value) -> ::Google::Cloud::Container::V1::NetworkPolicy::Provider
Parameter
- value (::Google::Cloud::Container::V1::NetworkPolicy::Provider) — The selected network policy provider.
Returns
- (::Google::Cloud::Container::V1::NetworkPolicy::Provider) — The selected network policy provider.