{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-dsc-configuration-create-or-update-parameters-schema.json",
  "title": "DscConfigurationCreateOrUpdateParameters",
  "description": "The parameters supplied to the create or update configuration operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-dscconfiguration-api-openapi.yml#/components/schemas/DscConfigurationCreateOrUpdateParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/DscConfigurationCreateOrUpdateProperties",
      "description": "Gets or sets configuration create or update properties.",
      "x-ms-client-flatten": true
    },
    "name": {
      "type": "string",
      "description": "Gets or sets name of the resource."
    },
    "location": {
      "type": "string",
      "description": "Gets or sets the location of the resource."
    },
    "tags": {
      "type": "object",
      "description": "Gets or sets the tags attached to the resource.",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "properties"
  ],
  "$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"
          }
        ]
      }
    },
    "DscConfigurationCreateOrUpdateProperties": {
      "type": "object",
      "description": "The properties to create or update configuration.",
      "properties": {
        "logVerbose": {
          "type": "boolean",
          "description": "Gets or sets verbose log option."
        },
        "logProgress": {
          "type": "boolean",
          "description": "Gets or sets progress log option."
        },
        "source": {
          "$ref": "#/$defs/ContentSource",
          "description": "Gets or sets the source."
        },
        "parameters": {
          "type": "object",
          "description": "Gets or sets the configuration parameters.",
          "additionalProperties": {
            "$ref": "#/$defs/DscConfigurationParameter"
          }
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description of the configuration."
        }
      },
      "required": [
        "source"
      ]
    },
    "DscConfigurationParameter": {
      "type": "object",
      "description": "Definition of the configuration parameter type.",
      "properties": {
        "type": {
          "type": "string",
          "description": "Gets or sets the type of the parameter."
        },
        "isMandatory": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value to indicate whether the parameter is mandatory or not."
        },
        "position": {
          "type": "integer",
          "format": "int32",
          "description": "Get or sets the position of the parameter."
        },
        "defaultValue": {
          "type": "string",
          "description": "Gets or sets the default value of parameter."
        }
      }
    }
  }
}