NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed
| Name | Type | Description | Notes |
|---|---|---|---|
| ip_block | V1IPBlock | [optional] | |
| namespace_selector | V1LabelSelector | [optional] | |
| pod_selector | V1LabelSelector | [optional] |
from kubernetes.client.models.v1_network_policy_peer import V1NetworkPolicyPeer
# TODO update the JSON string below
json = "{}"
# create an instance of V1NetworkPolicyPeer from a JSON string
v1_network_policy_peer_instance = V1NetworkPolicyPeer.from_json(json)
# print the JSON string representation of the object
print(V1NetworkPolicyPeer.to_json())
# convert the object into a dict
v1_network_policy_peer_dict = v1_network_policy_peer_instance.to_dict()
# create an instance of V1NetworkPolicyPeer from a dict
v1_network_policy_peer_from_dict = V1NetworkPolicyPeer.from_dict(v1_network_policy_peer_dict)