{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-kubernetes-service/json-schema/microsoft-azure-kubernetes-service-fleet-managed-namespace-patch-schema.json",
  "title": "FleetManagedNamespacePatch",
  "description": "The properties of a fleet managed namespace that can be patched.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_superseded/microsoft-azure-kubernetes-service-fleetmanagednamespaces-api-openapi.yml#/components/schemas/FleetManagedNamespacePatch",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "properties": {
      "$ref": "#/$defs/FleetManagedNamespacePropertiesPatch",
      "description": "The updatable properties of the fleet managed namespace."
    }
  },
  "$defs": {
    "AdoptionPolicy": {
      "type": "string",
      "description": "Action if the Namespace with the same name already exists.",
      "enum": [
        "Never",
        "IfIdentical",
        "Always"
      ],
      "x-ms-enum": {
        "name": "AdoptionPolicy",
        "modelAsString": true,
        "values": [
          {
            "name": "Never",
            "value": "Never",
            "description": "If the Namespace already exists, do not take over the existing Namespace to be managed by ARM."
          },
          {
            "name": "IfIdentical",
            "value": "IfIdentical",
            "description": "If there is an identical Namespace, take over the existing Namespace to be managed by ARM."
          },
          {
            "name": "Always",
            "value": "Always",
            "description": "Always take over the existing Namespace to be managed by ARM, even if it is not identical."
          }
        ]
      }
    },
    "Core.V1.TaintEffect": {
      "type": "string",
      "description": "TaintEffect",
      "enum": [
        "NoSchedule"
      ],
      "x-ms-enum": {
        "name": "TaintEffect",
        "modelAsString": true,
        "values": [
          {
            "name": "NoSchedule",
            "value": "NoSchedule",
            "description": "Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler."
          }
        ]
      }
    },
    "Core.V1.TolerationOperator": {
      "type": "string",
      "description": "A toleration operator is the set of operators that can be used in a toleration.",
      "enum": [
        "Exists",
        "Equal"
      ],
      "x-ms-enum": {
        "name": "TolerationOperator",
        "modelAsString": true,
        "values": [
          {
            "name": "Exists",
            "value": "Exists",
            "description": "Toleration Operator Exists"
          },
          {
            "name": "Equal",
            "value": "Equal",
            "description": "Toleration Operator Equal"
          }
        ]
      }
    },
    "DeletePolicy": {
      "type": "string",
      "description": "Delete options for the ARM managed namespace.",
      "enum": [
        "Keep",
        "Delete"
      ],
      "x-ms-enum": {
        "name": "DeletePolicy",
        "modelAsString": true,
        "values": [
          {
            "name": "Keep",
            "value": "Keep",
            "description": "Delete the ARM resource but keep the Namespace."
          },
          {
            "name": "Delete",
            "value": "Delete",
            "description": "Delete both ARM resource and Namespace."
          }
        ]
      }
    },
    "FleetManagedNamespacePropertiesPatch": {
      "type": "object",
      "description": "The properties of a fleet managed namespace that can be patched.",
      "properties": {
        "managedNamespaceProperties": {
          "$ref": "#/$defs/ManagedNamespaceProperties",
          "description": "The namespace properties for the fleet managed namespace."
        },
        "adoptionPolicy": {
          "$ref": "#/$defs/AdoptionPolicy",
          "description": "Action if the managed namespace with the same name already exists."
        },
        "deletePolicy": {
          "$ref": "#/$defs/DeletePolicy",
          "description": "Delete options of a fleet managed namespace."
        },
        "propagationPolicy": {
          "$ref": "#/$defs/PropagationPolicyPatch",
          "description": "The profile of the propagation to create the namespace."
        }
      }
    },
    "ManagedNamespaceProperties": {
      "type": "object",
      "description": "The namespace properties for the fleet managed namespace.",
      "properties": {
        "labels": {
          "type": "object",
          "description": "The labels for the fleet managed namespace.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "annotations": {
          "type": "object",
          "description": "The annotations for the fleet managed namespace.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "defaultResourceQuota": {
          "$ref": "#/$defs/ResourceQuota",
          "description": "The default resource quota for the fleet managed namespace."
        },
        "defaultNetworkPolicy": {
          "$ref": "#/$defs/NetworkPolicy",
          "description": "The default network policy for the fleet managed namespace."
        }
      }
    },
    "Meta.V1.LabelSelectorOperator": {
      "type": "string",
      "description": "A label selector operator is the set of operators that can be used in a selector requirement.",
      "enum": [
        "In",
        "NotIn",
        "Exists",
        "DoesNotExist"
      ],
      "x-ms-enum": {
        "name": "LabelSelectorOperator",
        "modelAsString": true,
        "values": [
          {
            "name": "In",
            "value": "In",
            "description": "Label Selector Operator In"
          },
          {
            "name": "NotIn",
            "value": "NotIn",
            "description": "Label Selector Operator NotIn"
          },
          {
            "name": "Exists",
            "value": "Exists",
            "description": "Label Selector Operator Exists"
          },
          {
            "name": "DoesNotExist",
            "value": "DoesNotExist",
            "description": "Label Selector Operator DoesNotExist"
          }
        ]
      }
    },
    "Meta.V1.LabelSelectorPatch": {
      "type": "object",
      "description": "The label selector settings that can be patched.",
      "properties": {
        "matchLabels": {
          "type": "object",
          "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "matchExpressions": {
          "type": "array",
          "description": "The label selector requirements that can be patched.",
          "items": {
            "$ref": "#/$defs/Meta.V1.LabelSelectorRequirementPatch"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "Meta.V1.LabelSelectorRequirementPatch": {
      "type": "object",
      "description": "A label selector requirement that can be patched.",
      "properties": {
        "key": {
          "type": "string",
          "description": "key is the label key that the selector applies to."
        },
        "operator": {
          "$ref": "#/$defs/Meta.V1.LabelSelectorOperator",
          "description": "operator represents a key's relationship to a set of values. Valid 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, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "NetworkPolicy": {
      "type": "object",
      "description": "The network policy for the managed namespace.",
      "properties": {
        "ingress": {
          "$ref": "#/$defs/PolicyRule",
          "description": "The ingress policy for the managed namespace."
        },
        "egress": {
          "$ref": "#/$defs/PolicyRule",
          "description": "The egress policy for the managed namespace."
        }
      }
    },
    "Placement.V1.AffinityPatch": {
      "type": "object",
      "description": "The affinity settings that can be patched.",
      "properties": {
        "clusterAffinity": {
          "$ref": "#/$defs/Placement.V1.ClusterAffinityPatch",
          "description": "The cluster affinity settings that can be patched."
        }
      }
    },
    "Placement.V1.ClusterAffinityPatch": {
      "type": "object",
      "description": "The cluster affinity rules that can be patched.",
      "properties": {
        "requiredDuringSchedulingIgnoredDuringExecution": {
          "$ref": "#/$defs/Placement.V1.ClusterSelectorPatch",
          "description": "The required cluster selector that can be patched."
        }
      }
    },
    "Placement.V1.ClusterResourcePlacementSpecPatch": {
      "type": "object",
      "description": "The ClusterResourcePlacement settings that can be patched.",
      "properties": {
        "policy": {
          "$ref": "#/$defs/Placement.V1.PlacementPolicyPatch",
          "description": "The placement policy that can be patched."
        },
        "rolloutStrategy": {
          "$ref": "#/$defs/Placement.V1.RolloutStrategy",
          "description": "The rollout strategy configuration that can be patched."
        }
      }
    },
    "Placement.V1.ClusterSelectorPatch": {
      "type": "object",
      "description": "The cluster selector settings that can be patched.",
      "properties": {
        "clusterSelectorTerms": {
          "type": "array",
          "description": "The cluster selector terms that can be patched.",
          "items": {
            "$ref": "#/$defs/Placement.V1.ClusterSelectorTermPatch"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "Placement.V1.ClusterSelectorTermPatch": {
      "type": "object",
      "description": "A cluster selector term that can be patched.",
      "properties": {
        "labelSelector": {
          "$ref": "#/$defs/Meta.V1.LabelSelectorPatch",
          "description": "The label selector that can be patched."
        },
        "propertySelector": {
          "$ref": "#/$defs/Placement.V1.PropertySelectorPatch",
          "description": "The property selector that can be patched."
        }
      }
    },
    "Placement.V1.ClusterUpdateStrategyReference": {
      "type": "object",
      "description": "A reference to an existing cluster staged update strategy.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of an existing cluster staged update strategy."
        }
      }
    },
    "Placement.V1.PlacementPolicyPatch": {
      "type": "object",
      "description": "The placement policy settings that can be patched.",
      "properties": {
        "placementType": {
          "$ref": "#/$defs/Placement.V1.PlacementType",
          "description": "The placement type that can be patched."
        },
        "clusterNames": {
          "type": "array",
          "description": "The member cluster names that can be patched.",
          "items": {
            "type": "string"
          }
        },
        "affinity": {
          "$ref": "#/$defs/Placement.V1.AffinityPatch",
          "description": "The cluster affinity settings that can be patched."
        },
        "tolerations": {
          "type": "array",
          "description": "The tolerations that can be patched.",
          "items": {
            "$ref": "#/$defs/Placement.V1.Toleration"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "Placement.V1.PlacementType": {
      "type": "string",
      "description": "PlacementType identifies the type of placement.",
      "enum": [
        "PickAll",
        "PickFixed"
      ],
      "x-ms-enum": {
        "name": "PlacementType",
        "modelAsString": true,
        "values": [
          {
            "name": "PickAll",
            "value": "PickAll",
            "description": "PickAll picks all clusters that satisfy the rules."
          },
          {
            "name": "PickFixed",
            "value": "PickFixed",
            "description": "PickFixed picks a fixed set of clusters."
          }
        ]
      }
    },
    "Placement.V1.PropertySelectorOperator": {
      "type": "string",
      "description": "PropertySelectorOperator is the operator that can be used with PropertySelectorRequirements.",
      "enum": [
        "Gt",
        "Ge",
        "Eq",
        "Ne",
        "Lt",
        "Le"
      ],
      "x-ms-enum": {
        "name": "PropertySelectorOperator",
        "modelAsString": true,
        "values": [
          {
            "name": "Gt",
            "value": "Gt",
            "description": "Gt dictates Fleet to select cluster if its observed value of a given property is greater than the value specified in the requirement."
          },
          {
            "name": "Ge",
            "value": "Ge",
            "description": "Ge dictates Fleet to select cluster if its observed value of a given property is greater than or equal to the value specified in the requirement."
          },
          {
            "name": "Eq",
            "value": "Eq",
            "description": "Eq dictates Fleet to select cluster if its observed value of a given property is equal to the values specified in the requirement."
          },
          {
            "name": "Ne",
            "value": "Ne",
            "description": "Ne dictates Fleet to select cluster if its observed value of a given property is not equal to the values specified in the requirement."
          },
          {
            "name": "Lt",
            "value": "Lt",
            "description": "Lt dictates Fleet to select cluster if its observed value of a given property is less than the value specified in the requirement."
          },
          {
            "name": "Le",
            "value": "Le",
            "description": "Le dictates Fleet to select cluster if its observed value of a given property is less than or equal to the value specified in the requirement."
          }
        ]
      }
    },
    "Placement.V1.PropertySelectorPatch": {
      "type": "object",
      "description": "The property selector settings that can be patched.",
      "properties": {
        "matchExpressions": {
          "type": "array",
          "description": "The property selector requirements that can be patched.",
          "items": {
            "$ref": "#/$defs/Placement.V1.PropertySelectorRequirementPatch"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "Placement.V1.PropertySelectorRequirementPatch": {
      "type": "object",
      "description": "A property selector requirement that can be patched.",
      "properties": {
        "name": {
          "type": "string",
          "description": "The property name that can be patched."
        },
        "operator": {
          "$ref": "#/$defs/Placement.V1.PropertySelectorOperator",
          "description": "The property selector operator that can be patched."
        },
        "values": {
          "type": "array",
          "description": "The property values that can be patched.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "Placement.V1.RolloutStrategy": {
      "type": "object",
      "description": "The rollout strategy configuration.",
      "properties": {
        "type": {
          "$ref": "#/$defs/Placement.V1.RolloutStrategyType",
          "description": "The type of rollout strategy. Default is RollingUpdate."
        },
        "clusterUpdateStrategy": {
          "$ref": "#/$defs/Placement.V1.ClusterUpdateStrategyReference",
          "description": "Reference to an existing cluster update strategy. Required when type is External."
        }
      }
    },
    "Placement.V1.RolloutStrategyType": {
      "type": "string",
      "description": "The possible rollout strategy types.",
      "enum": [
        "RollingUpdate",
        "External"
      ],
      "x-ms-enum": {
        "name": "RolloutStrategyType",
        "modelAsString": true,
        "values": [
          {
            "name": "RollingUpdate",
            "value": "RollingUpdate",
            "description": "Use rolling update strategy for rollout."
          },
          {
            "name": "External",
            "value": "External",
            "description": "Use external rollout strategy via Staged Update Run."
          }
        ]
      }
    },
    "Placement.V1.Toleration": {
      "type": "object",
      "description": "Toleration allows ClusterResourcePlacement to tolerate any taint that matches the triple <key,value,effect> using the matching operator <operator>.",
      "properties": {
        "key": {
          "type": "string",
          "description": "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys."
        },
        "operator": {
          "$ref": "#/$defs/Core.V1.TolerationOperator",
          "description": "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ClusterResourcePlacement can tolerate all taints of a particular category."
        },
        "value": {
          "type": "string",
          "description": "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string."
        },
        "effect": {
          "$ref": "#/$defs/Core.V1.TaintEffect",
          "description": "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, only allowed value is NoSchedule."
        }
      }
    },
    "PlacementProfilePatch": {
      "type": "object",
      "description": "The placement profile settings that can be patched.",
      "properties": {
        "defaultClusterResourcePlacement": {
          "$ref": "#/$defs/Placement.V1.ClusterResourcePlacementSpecPatch",
          "description": "The default ClusterResourcePlacement policy configuration that can be patched."
        }
      }
    },
    "PolicyRule": {
      "type": "string",
      "description": "The possible values representing different network policy rules.",
      "enum": [
        "AllowAll",
        "DenyAll",
        "AllowSameNamespace"
      ],
      "x-ms-enum": {
        "name": "PolicyRule",
        "modelAsString": true,
        "values": [
          {
            "name": "AllowAll",
            "value": "AllowAll",
            "description": "Allow all network traffic."
          },
          {
            "name": "DenyAll",
            "value": "DenyAll",
            "description": "Deny all network traffic."
          },
          {
            "name": "AllowSameNamespace",
            "value": "AllowSameNamespace",
            "description": "Allow traffic within the same namespace."
          }
        ]
      }
    },
    "PropagationPolicyPatch": {
      "type": "object",
      "description": "The propagation settings that can be patched.",
      "properties": {
        "type": {
          "$ref": "#/$defs/PropagationType",
          "description": "The type of the policy to be used."
        },
        "placementProfile": {
          "$ref": "#/$defs/PlacementProfilePatch",
          "description": "The placement profile that can be patched."
        }
      }
    },
    "PropagationType": {
      "type": "string",
      "description": "How the namespace will be provisioned among the fleet members.",
      "enum": [
        "Placement"
      ],
      "x-ms-enum": {
        "name": "PropagationType",
        "modelAsString": true,
        "values": [
          {
            "name": "Placement",
            "value": "Placement",
            "description": "Using ClusterResourcePlacement."
          }
        ]
      }
    },
    "ResourceQuota": {
      "type": "object",
      "description": "The resource quota for the managed namespace.",
      "properties": {
        "cpuRequest": {
          "type": "string",
          "description": "The CPU request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu"
        },
        "cpuLimit": {
          "type": "string",
          "description": "The CPU limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu"
        },
        "memoryRequest": {
          "type": "string",
          "description": "The memory request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory"
        },
        "memoryLimit": {
          "type": "string",
          "description": "The memory limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory"
        }
      }
    }
  }
}