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
1763 1764 1765 |
# File 'generated/google/apis/container_v1/classes.rb', line 1763 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
1761 1762 1763 |
# File 'generated/google/apis/container_v1/classes.rb', line 1761 def network_policy @network_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1768 1769 1770 |
# File 'generated/google/apis/container_v1/classes.rb', line 1768 def update!(**args) @network_policy = args[:network_policy] if args.key?(:network_policy) end |