{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-dsc-node-configuration-create-or-update-parameters-schema.json",
  "title": "DscNodeConfigurationCreateOrUpdateParameters",
  "description": "The parameters supplied to the create or update node configuration operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-dscnodeconfiguration-api-openapi.yml#/components/schemas/DscNodeConfigurationCreateOrUpdateParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/DscNodeConfigurationCreateOrUpdateParametersProperties",
      "description": "Node configuration properties",
      "x-ms-client-flatten": true
    },
    "name": {
      "type": "string",
      "description": "Name of the node configuration."
    },
    "tags": {
      "type": "object",
      "description": "Gets or sets the tags attached to the resource.",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "ContentHash": {
      "type": "object",
      "description": "Definition of the runbook property type.",
      "properties": {
        "algorithm": {
          "type": "string",
          "description": "Gets or sets the content hash algorithm used to hash the content."
        },
        "value": {
          "type": "string",
          "description": "Gets or sets expected hash value of the content."
        }
      },
      "required": [
        "algorithm",
        "value"
      ]
    },
    "ContentSource": {
      "type": "object",
      "description": "Definition of the content source.",
      "properties": {
        "hash": {
          "$ref": "#/$defs/ContentHash",
          "description": "Gets or sets the hash."
        },
        "type": {
          "$ref": "#/$defs/ContentSourceType",
          "description": "Gets or sets the content source type."
        },
        "value": {
          "type": "string",
          "description": "Gets or sets the value of the content. This is based on the content source type."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the content."
        }
      }
    },
    "ContentSourceType": {
      "type": "string",
      "description": "Gets or sets the content source type.",
      "enum": [
        "embeddedContent",
        "uri"
      ],
      "x-ms-enum": {
        "name": "ContentSourceType",
        "modelAsString": true,
        "values": [
          {
            "name": "embeddedContent",
            "value": "embeddedContent",
            "description": "embeddedContent"
          },
          {
            "name": "uri",
            "value": "uri",
            "description": "uri"
          }
        ]
      }
    },
    "DscConfigurationAssociationProperty": {
      "type": "object",
      "description": "The Dsc configuration property associated with the entity.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the Dsc configuration."
        }
      }
    },
    "DscNodeConfigurationCreateOrUpdateParametersProperties": {
      "type": "object",
      "description": "The parameter properties supplied to the create or update node configuration operation.",
      "properties": {
        "source": {
          "$ref": "#/$defs/ContentSource",
          "description": "Gets or sets the source."
        },
        "configuration": {
          "$ref": "#/$defs/DscConfigurationAssociationProperty",
          "description": "Gets or sets the configuration of the node."
        },
        "incrementNodeConfigurationBuild": {
          "type": "boolean",
          "description": "If a new build version of NodeConfiguration is required."
        }
      },
      "required": [
        "source",
        "configuration"
      ]
    }
  }
}