Class: KubeDSL::DSL::Extensions::V1beta1::NetworkPolicyPeer
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
19
20
21
|
# File 'lib/kube-dsl/dsl/extensions/v1beta1/network_policy_peer.rb', line 19
def kind_sym
:network_policy_peer
end
|
#serialize ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/kube-dsl/dsl/extensions/v1beta1/network_policy_peer.rb', line 11
def serialize
{}.tap do |result|
result[:ipBlock] = ip_block.serialize
result[:namespaceSelector] = namespace_selector.serialize
result[:podSelector] = pod_selector.serialize
end
end
|