{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/scaleway.instance.v1.PlacementGroup",
  "title": "scaleway.instance.v1.PlacementGroup",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Placement group unique ID."
    },
    "name": {
      "type": "string",
      "description": "Placement group name."
    },
    "organization": {
      "type": "string",
      "description": "Placement group Organization ID."
    },
    "project": {
      "type": "string",
      "description": "Placement group Project ID."
    },
    "tags": {
      "type": "array",
      "description": "Placement group tags.",
      "items": {
        "type": "string"
      }
    },
    "policy_mode": {
      "type": "string",
      "description": "Select the failure mode when the placement cannot be respected, either optional or enforced.",
      "enum": [
        "optional",
        "enforced"
      ],
      "default": "optional"
    },
    "policy_type": {
      "type": "string",
      "description": "Select the behavior of the placement group, either low_latency (group) or max_availability (spread).",
      "enum": [
        "max_availability",
        "low_latency"
      ],
      "default": "max_availability"
    },
    "policy_respected": {
      "type": "boolean",
      "description": "True if the policy is respected, false otherwise.\nIn the server endpoints the value is always false as it is deprecated.\nIn the placement group endpoints the value is correct."
    },
    "zone": {
      "type": "string",
      "description": "Zone in which the placement group is located."
    }
  },
  "x-properties-order": [
    "id",
    "name",
    "organization",
    "project",
    "tags",
    "policy_mode",
    "policy_type",
    "policy_respected",
    "zone"
  ]
}