Class: Google::Apis::ContainerV1::SetNetworkPolicyRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::SetNetworkPolicyRequest
- Defined in:
- generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb
Overview
SetNetworkPolicyRequest enables/disables network policy for a cluster.
Instance Attribute Summary collapse
-
#network_policy ⇒ Google::Apis::ContainerV1::NetworkPolicy
Configuration options for the NetworkPolicy feature.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetNetworkPolicyRequest
constructor
A new instance of SetNetworkPolicyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ SetNetworkPolicyRequest
Returns a new instance of SetNetworkPolicyRequest
1640 1641 1642 |
# File 'generated/google/apis/container_v1/classes.rb', line 1640 def initialize(**args) update!(**args) end |
Instance Attribute Details
#network_policy ⇒ Google::Apis::ContainerV1::NetworkPolicy
Configuration options for the NetworkPolicy feature.
https://kubernetes.io/docs/concepts/services-networking/networkpolicies/
Corresponds to the JSON property networkPolicy
1638 1639 1640 |
# File 'generated/google/apis/container_v1/classes.rb', line 1638 def network_policy @network_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1645 1646 1647 |
# File 'generated/google/apis/container_v1/classes.rb', line 1645 def update!(**args) @network_policy = args[:network_policy] if args.key?(:network_policy) end |