{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-networking-services/json-schema/azure-networking-services-firewall-policy-kube-selector-group-schema.json",
  "title": "FirewallPolicyKubeSelectorGroup",
  "description": "Firewall Policy Kubernetes Selector Group resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-networking-services-firewallpolicykubeselectorgroups-api-openapi.yml#/components/schemas/FirewallPolicyKubeSelectorGroup",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/FirewallPolicyKubeSelectorGroupProperties",
      "description": "The properties of the firewall policy Kubernetes selector group."
    },
    "etag": {
      "type": "string",
      "description": "A unique read-only string that changes whenever the resource is updated.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/SubResourceModel"
    }
  ],
  "$defs": {
    "FirewallPolicyKubeSelectorGroupProperties": {
      "type": "object",
      "description": "Properties of the Kubernetes Selector Group.",
      "properties": {
        "podSelector": {
          "$ref": "#/$defs/KubeLabelSelector",
          "description": "Kubernetes Pod selector for matching pods in the Kubernetes cluster."
        },
        "namespaceSelector": {
          "$ref": "#/$defs/KubeLabelSelector",
          "description": "Kubernetes Namespace selector for matching namespaces in the Kubernetes cluster."
        },
        "provisioningState": {
          "$ref": "#/$defs/ProvisioningState",
          "description": "The provisioning state of the firewall policy Kubernetes selector group resource.",
          "readOnly": true
        }
      }
    },
    "KubeLabelSelector": {
      "type": "object",
      "description": "Kubernetes Label Selector for matching labels in Kubernetes Selector Groups.",
      "properties": {
        "matchLabels": {
          "type": "object",
          "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels\nmap is equivalent to an element of matchExpressions, whose key field is \"key\", the\noperator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "matchExpressions": {
          "type": "array",
          "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
          "items": {
            "$ref": "#/$defs/LabelSelectorExpression"
          }
        }
      }
    },
    "LabelSelectorExpression": {
      "type": "object",
      "description": "A label selector requirement is a selector that contains values, a key, and an operator that\nrelates the key and values.",
      "properties": {
        "key": {
          "type": "string",
          "description": "key is a string of 63 characters or less, and must consist of alphanumeric characters,\n'-', '_' or '.'."
        },
        "operator": {
          "$ref": "#/$defs/LabelSelectorOperator",
          "description": "operator represents a key's relationship to a set of values.\nValid operators are In, NotIn, Exists and DoesNotExist."
        },
        "values": {
          "type": "array",
          "description": "values is an array of string values. If the operator is In or NotIn,\nthe values array must be non-empty. If the operator is Exists or DoesNotExist,\nthe values array must be empty.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "LabelSelectorOperator": {
      "type": "string",
      "description": "operator represents a Kubernetes label selector requirement's relationship to a set of values.",
      "enum": [
        "In",
        "NotIn",
        "Exists",
        "DoesNotExist"
      ],
      "x-ms-enum": {
        "name": "LabelSelectorOperator",
        "modelAsString": true,
        "values": [
          {
            "name": "In",
            "value": "In",
            "description": "The label value must be in the supplied set of values."
          },
          {
            "name": "NotIn",
            "value": "NotIn",
            "description": "The label value must not be in the supplied set of values."
          },
          {
            "name": "Exists",
            "value": "Exists",
            "description": "The label key must exist, regardless of its value."
          },
          {
            "name": "DoesNotExist",
            "value": "DoesNotExist",
            "description": "The label key must not exist."
          }
        ]
      }
    },
    "ProvisioningState": {
      "type": "string",
      "description": "Provisioning states of a resource.",
      "enum": [
        "Failed",
        "Succeeded",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "ProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Failed"
          },
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Succeeded"
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Canceled"
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "Creating"
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "Updating"
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "Deleting"
          }
        ]
      }
    },
    "SubResource": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Resource ID."
        }
      }
    },
    "SubResourceModel": {
      "type": "object",
      "description": "Reference to another subresource.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the resource."
        },
        "type": {
          "type": "string",
          "description": "Resource type.",
          "readOnly": true
        }
      },
      "allOf": [
        {
          "$ref": "#/$defs/SubResource"
        }
      ],
      "x-ms-azure-resource": true
    }
  }
}