{
  "$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-schema.json",
  "title": "FleetManagedNamespace",
  "description": "A fleet managed namespace.",
  "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/FleetManagedNamespace",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/FleetManagedNamespaceProperties",
      "description": "The resource-specific properties for this resource."
    },
    "eTag": {
      "type": "string",
      "description": "If eTag is provided in the response body, it may also be provided as a header per the normal etag convention.  Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.",
      "readOnly": true
    }
  },
  "allOf": [
    {
      "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/TrackedResource"
    }
  ],
  "$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."
          }
        ]
      }
    },
    "FleetManagedNamespaceProperties": {
      "type": "object",
      "description": "The properties of a fleet managed namespace.",
      "properties": {
        "provisioningState": {
          "$ref": "#/$defs/FleetManagedNamespaceProvisioningState",
          "description": "The status of the last operation.",
          "readOnly": true
        },
        "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. Default is Never."
        },
        "deletePolicy": {
          "$ref": "#/$defs/DeletePolicy",
          "description": "Delete options of a fleet managed namespace. Default is Keep."
        },
        "propagationPolicy": {
          "$ref": "#/$defs/PropagationPolicy",
          "description": "The profile of the propagation to create the namespace."
        },
        "status": {
          "$ref": "#/$defs/FleetManagedNamespaceStatus",
          "description": "Status information of the last operation for fleet managed namespace.",
          "readOnly": true
        },
        "portalFqdn": {
          "type": "string",
          "description": "The Azure Portal FQDN of the Fleet hub.",
          "readOnly": true
        }
      },
      "required": [
        "adoptionPolicy",
        "deletePolicy"
      ]
    },
    "FleetManagedNamespaceProvisioningState": {
      "type": "string",
      "description": "The provisioning state of the fleet managed namespace resource",
      "enum": [
        "Succeeded",
        "Failed",
        "Canceled",
        "Creating",
        "Updating",
        "Deleting"
      ],
      "x-ms-enum": {
        "name": "FleetManagedNamespaceProvisioningState",
        "modelAsString": true,
        "values": [
          {
            "name": "Succeeded",
            "value": "Succeeded",
            "description": "Resource has been created."
          },
          {
            "name": "Failed",
            "value": "Failed",
            "description": "Resource creation failed."
          },
          {
            "name": "Canceled",
            "value": "Canceled",
            "description": "Resource creation was canceled."
          },
          {
            "name": "Creating",
            "value": "Creating",
            "description": "The provisioning state of a fleet managed namespace being created."
          },
          {
            "name": "Updating",
            "value": "Updating",
            "description": "The provisioning state of a fleet managed namespace being updated."
          },
          {
            "name": "Deleting",
            "value": "Deleting",
            "description": "The provisioning state of a fleet managed namespace being deleted."
          }
        ]
      },
      "readOnly": true
    },
    "FleetManagedNamespaceStatus": {
      "type": "object",
      "description": "Status information for the fleet managed namespace.",
      "properties": {
        "lastOperationId": {
          "type": "string",
          "description": "The last operation ID for the fleet managed namespace",
          "readOnly": true
        },
        "lastOperationError": {
          "$ref": "../../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorDetail",
          "description": "The last operation error of the fleet managed namespace",
          "readOnly": true
        }
      }
    },
    "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.LabelSelector": {
      "type": "object",
      "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
      "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": "matchExpressions is a list of label selector requirements. The requirements are ANDed.",
          "items": {
            "$ref": "#/$defs/Meta.V1.LabelSelectorRequirement"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "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.LabelSelectorRequirement": {
      "type": "object",
      "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
      "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"
          }
        }
      },
      "required": [
        "key",
        "operator"
      ]
    },
    "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.Affinity": {
      "type": "object",
      "description": "Affinity is a group of cluster affinity scheduling rules. More to be added.",
      "properties": {
        "clusterAffinity": {
          "$ref": "#/$defs/Placement.V1.ClusterAffinity",
          "description": "ClusterAffinity contains cluster affinity scheduling rules for the selected resources."
        }
      }
    },
    "Placement.V1.ClusterAffinity": {
      "type": "object",
      "description": "ClusterAffinity contains cluster affinity scheduling rules for the selected resources.",
      "properties": {
        "requiredDuringSchedulingIgnoredDuringExecution": {
          "$ref": "#/$defs/Placement.V1.ClusterSelector",
          "description": "If the affinity requirements specified by this field are not met at scheduling time, the resource will not be scheduled onto the cluster. If the affinity requirements specified by this field cease to be met at some point after the placement (e.g. due to an update), the system may or may not try to eventually remove the resource from the cluster."
        }
      }
    },
    "Placement.V1.ClusterResourcePlacementSpec": {
      "type": "object",
      "description": "ClusterResourcePlacementSpec defines the desired state of ClusterResourcePlacement.",
      "properties": {
        "policy": {
          "$ref": "#/$defs/Placement.V1.PlacementPolicy",
          "description": "Policy defines how to select member clusters to place the selected resources. If unspecified, all the joined member clusters are selected."
        },
        "rolloutStrategy": {
          "$ref": "#/$defs/Placement.V1.RolloutStrategy",
          "description": "The rollout strategy configuration for the cluster resource placement."
        }
      }
    },
    "Placement.V1.ClusterSelector": {
      "type": "object",
      "description": "ClusterSelector",
      "properties": {
        "clusterSelectorTerms": {
          "type": "array",
          "description": "ClusterSelectorTerms is a list of cluster selector terms. The terms are `ORed`.",
          "items": {
            "$ref": "#/$defs/Placement.V1.ClusterSelectorTerm"
          },
          "x-ms-identifiers": []
        }
      },
      "required": [
        "clusterSelectorTerms"
      ]
    },
    "Placement.V1.ClusterSelectorTerm": {
      "type": "object",
      "description": "ClusterSelectorTerm",
      "properties": {
        "labelSelector": {
          "$ref": "#/$defs/Meta.V1.LabelSelector",
          "description": "LabelSelector is a label query over all the joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd."
        },
        "propertySelector": {
          "$ref": "#/$defs/Placement.V1.PropertySelector",
          "description": "PropertySelector is a property query over all joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd. At this moment, PropertySelector can only be used with `RequiredDuringSchedulingIgnoredDuringExecution` affinity terms. This field is beta-level; it is for the property-based scheduling feature and is only functional when a property provider is enabled in the deployment."
        }
      }
    },
    "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.PlacementPolicy": {
      "type": "object",
      "description": "PlacementPolicy contains the rules to select target member clusters to place the selected resources. Note that only clusters that are both joined and satisfying the rules will be selected. You can only specify at most one of the two fields: ClusterNames and Affinity. If none is specified, all the joined clusters are selected.",
      "properties": {
        "placementType": {
          "$ref": "#/$defs/Placement.V1.PlacementType",
          "description": "Type of placement. Can be \"PickAll\", \"PickN\" or \"PickFixed\". Default is PickAll."
        },
        "clusterNames": {
          "type": "array",
          "description": "ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the placement type is \"PickFixed\"",
          "items": {
            "type": "string"
          }
        },
        "affinity": {
          "$ref": "#/$defs/Placement.V1.Affinity",
          "description": "Affinity contains cluster affinity scheduling rules. Defines which member clusters to place the selected resources. Only valid if the placement type is \"PickAll\" or \"PickN\"."
        },
        "tolerations": {
          "type": "array",
          "description": "If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is beta-level and is for the taints and tolerations feature.",
          "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.PropertySelector": {
      "type": "object",
      "description": "PropertySelector helps user specify property requirements when picking clusters for resource placement.",
      "properties": {
        "matchExpressions": {
          "type": "array",
          "description": "MatchExpressions is an array of PropertySelectorRequirements. The requirements are AND'd.",
          "items": {
            "$ref": "#/$defs/Placement.V1.PropertySelectorRequirement"
          }
        }
      },
      "required": [
        "matchExpressions"
      ]
    },
    "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.PropertySelectorRequirement": {
      "type": "object",
      "description": "PropertySelectorRequirement is a specific property requirement when picking clusters for resource placement.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name is the name of the property; it should be a Kubernetes label name."
        },
        "operator": {
          "$ref": "#/$defs/Placement.V1.PropertySelectorOperator",
          "description": "Operator specifies the relationship between a cluster's observed value of the specified property and the values given in the requirement."
        },
        "values": {
          "type": "array",
          "description": "Values are a list of values of the specified property which Fleet will compare against the observed values of individual member clusters in accordance with the given operator. At this moment, each value should be a Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or `Le` (less than or equal to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list.",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "name",
        "operator",
        "values"
      ]
    },
    "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."
        }
      }
    },
    "PlacementProfile": {
      "type": "object",
      "description": "The configuration profile for default ClusterResourcePlacement for placement.",
      "properties": {
        "defaultClusterResourcePlacement": {
          "$ref": "#/$defs/Placement.V1.ClusterResourcePlacementSpec",
          "description": "The default ClusterResourcePlacement policy configuration."
        }
      }
    },
    "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."
          }
        ]
      }
    },
    "PropagationPolicy": {
      "type": "object",
      "description": "The propagation to be used for provisioning the namespace among the fleet.",
      "properties": {
        "type": {
          "$ref": "#/$defs/PropagationType",
          "description": "The type of the policy to be used. Default is Placement."
        },
        "placementProfile": {
          "$ref": "#/$defs/PlacementProfile",
          "description": "The profile to be used for propagation via placement."
        }
      },
      "required": [
        "type"
      ]
    },
    "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"
        }
      }
    }
  }
}