class Google::Apis::ContainerV1::NetworkPolicy
Configuration options for the NetworkPolicy
feature. kubernetes.io/ docs/concepts/services-networking/networkpolicies/
Attributes
enabled[RW]
Whether network policy is enabled on the cluster. Corresponds to the JSON property `enabled` @return [Boolean]
enabled?[RW]
Whether network policy is enabled on the cluster. Corresponds to the JSON property `enabled` @return [Boolean]
provider[RW]
The selected network policy provider. Corresponds to the JSON property `provider` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/container_v1/classes.rb, line 2485 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/container_v1/classes.rb, line 2490 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @provider = args[:provider] if args.key?(:provider) end