class K8S::Api::Extensions::V1beta1::NetworkPolicySpec
- K8S::Api::Extensions::V1beta1::NetworkPolicySpec
- Reference
- Object
Overview
DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.15/api/extensions/v1beta1/network_policy_spec.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector, egress : Array(Api::Extensions::V1beta1::NetworkPolicyEgressRule)? = nil, ingress : Array(Api::Extensions::V1beta1::NetworkPolicyIngressRule)? = nil, policy_types : Array(String)? = nil)
Instance Method Summary
- #egress : Array(Api::Extensions::V1beta1::NetworkPolicyEgressRule)?
- #egress=(egress : Array(Api::Extensions::V1beta1::NetworkPolicyEgressRule)?)
- #ingress : Array(Api::Extensions::V1beta1::NetworkPolicyIngressRule)?
- #ingress=(ingress : Array(Api::Extensions::V1beta1::NetworkPolicyIngressRule)?)
- #pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector
- #pod_selector=(pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector)
- #policy_types : Array(String)?
- #policy_types=(policy_types : Array(String)?)
Constructor Detail
def self.new(*, pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector, egress : Array(Api::Extensions::V1beta1::NetworkPolicyEgressRule)? = nil, ingress : Array(Api::Extensions::V1beta1::NetworkPolicyIngressRule)? = nil, policy_types : Array(String)? = nil)
#