{
  "kind": "NetworkPolicy",
  "apiVersion": "networking.k8s.io/v1",
  "metadata": {
    "name": "nameValue",
    "generateName": "generateNameValue",
    "namespace": "namespaceValue",
    "selfLink": "selfLinkValue",
    "uid": "uidValue",
    "resourceVersion": "resourceVersionValue",
    "generation": 7,
    "creationTimestamp": "2008-01-01T01:01:01Z",
    "deletionTimestamp": "2009-01-01T01:01:01Z",
    "deletionGracePeriodSeconds": 10,
    "labels": {
      "labelsKey": "labelsValue"
    },
    "annotations": {
      "annotationsKey": "annotationsValue"
    },
    "ownerReferences": [
      {
        "apiVersion": "apiVersionValue",
        "kind": "kindValue",
        "name": "nameValue",
        "uid": "uidValue",
        "controller": true,
        "blockOwnerDeletion": true
      }
    ],
    "finalizers": [
      "finalizersValue"
    ],
    "managedFields": [
      {
        "manager": "managerValue",
        "operation": "operationValue",
        "apiVersion": "apiVersionValue",
        "time": "2004-01-01T01:01:01Z",
        "fieldsType": "fieldsTypeValue",
        "fieldsV1": {},
        "subresource": "subresourceValue"
      }
    ]
  },
  "spec": {
    "podSelector": {
      "matchLabels": {
        "matchLabelsKey": "matchLabelsValue"
      },
      "matchExpressions": [
        {
          "key": "keyValue",
          "operator": "operatorValue",
          "values": [
            "valuesValue"
          ]
        }
      ]
    },
    "ingress": [
      {
        "ports": [
          {
            "protocol": "protocolValue",
            "port": "portValue",
            "endPort": 3
          }
        ],
        "from": [
          {
            "podSelector": {
              "matchLabels": {
                "matchLabelsKey": "matchLabelsValue"
              },
              "matchExpressions": [
                {
                  "key": "keyValue",
                  "operator": "operatorValue",
                  "values": [
                    "valuesValue"
                  ]
                }
              ]
            },
            "namespaceSelector": {
              "matchLabels": {
                "matchLabelsKey": "matchLabelsValue"
              },
              "matchExpressions": [
                {
                  "key": "keyValue",
                  "operator": "operatorValue",
                  "values": [
                    "valuesValue"
                  ]
                }
              ]
            },
            "ipBlock": {
              "cidr": "cidrValue",
              "except": [
                "exceptValue"
              ]
            }
          }
        ]
      }
    ],
    "egress": [
      {
        "ports": [
          {
            "protocol": "protocolValue",
            "port": "portValue",
            "endPort": 3
          }
        ],
        "to": [
          {
            "podSelector": {
              "matchLabels": {
                "matchLabelsKey": "matchLabelsValue"
              },
              "matchExpressions": [
                {
                  "key": "keyValue",
                  "operator": "operatorValue",
                  "values": [
                    "valuesValue"
                  ]
                }
              ]
            },
            "namespaceSelector": {
              "matchLabels": {
                "matchLabelsKey": "matchLabelsValue"
              },
              "matchExpressions": [
                {
                  "key": "keyValue",
                  "operator": "operatorValue",
                  "values": [
                    "valuesValue"
                  ]
                }
              ]
            },
            "ipBlock": {
              "cidr": "cidrValue",
              "except": [
                "exceptValue"
              ]
            }
          }
        ]
      }
    ],
    "policyTypes": [
      "policyTypesValue"
    ]
  }
}