{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-cdn/json-schema/microsoft-azure-cdn-edge-action-version-update-schema.json",
  "title": "EdgeActionVersionUpdate",
  "description": "The type used for update operations of the EdgeActionVersion.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-cdn-edgeactionversions-api-openapi.yml#/components/schemas/EdgeActionVersionUpdate",
  "type": "object",
  "properties": {
    "tags": {
      "type": "object",
      "description": "Resource tags.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "properties": {
      "$ref": "#/$defs/EdgeActionVersionUpdateProperties",
      "description": "The resource-specific properties for this resource."
    }
  },
  "$defs": {
    "EdgeActionIsDefaultVersion": {
      "type": "string",
      "description": "Indicates whether this is the default version",
      "enum": [
        "True",
        "False"
      ],
      "x-ms-enum": {
        "name": "EdgeActionIsDefaultVersion",
        "modelAsString": true,
        "values": [
          {
            "name": "True",
            "value": "True",
            "description": "This is the default version"
          },
          {
            "name": "False",
            "value": "False",
            "description": "This is not the default version"
          }
        ]
      }
    },
    "EdgeActionVersionDeploymentType": {
      "type": "string",
      "description": "The deployment type for edge action versions",
      "enum": [
        "zip",
        "file",
        "others"
      ],
      "x-ms-enum": {
        "name": "EdgeActionVersionDeploymentType",
        "modelAsString": true,
        "values": [
          {
            "name": "zip",
            "value": "zip",
            "description": "ZIP file deployment"
          },
          {
            "name": "file",
            "value": "file",
            "description": "Single file deployment"
          },
          {
            "name": "others",
            "value": "others",
            "description": "Other deployment types"
          }
        ]
      }
    },
    "EdgeActionVersionUpdateProperties": {
      "type": "object",
      "description": "The updatable properties of the EdgeActionVersion.",
      "properties": {
        "deploymentType": {
          "$ref": "#/$defs/EdgeActionVersionDeploymentType",
          "description": "The deployment type for the Edge Action version. Set this value when creating the version. When updating an existing version, any supplied value must match the existing value.",
          "x-ms-mutability": [
            "read",
            "update",
            "create"
          ]
        },
        "isDefaultVersion": {
          "$ref": "#/$defs/EdgeActionIsDefaultVersion",
          "description": "Indicates whether this is the default version. When creating a version, if the Edge Action has no default version, the service makes the new version the default even when false is supplied. If another default version exists, supplying true is rejected. When updating an existing version, any supplied value must match the existing value. Use swapDefault to change the default version.",
          "x-ms-mutability": [
            "read",
            "update",
            "create"
          ]
        }
      }
    }
  }
}