{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-package-create-or-update-parameters-schema.json",
  "title": "PackageCreateOrUpdateParameters",
  "description": "The parameters supplied to the create or update package operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-package-api-openapi.yml#/components/schemas/PackageCreateOrUpdateParameters",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/PackageCreateOrUpdateProperties",
      "description": "Gets or sets the package create properties.",
      "x-ms-client-flatten": true
    },
    "allOf": {
      "$ref": "#/$defs/TrackedResource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'"
    }
  },
  "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"
      ]
    },
    "ContentLink": {
      "type": "object",
      "description": "Definition of the content link.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Gets or sets the uri of content."
        },
        "contentHash": {
          "$ref": "#/$defs/ContentHash",
          "description": "Gets or sets the hash."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the content."
        }
      }
    },
    "PackageCreateOrUpdateProperties": {
      "type": "object",
      "description": "The parameters supplied to the create or update package properties.",
      "properties": {
        "contentLink": {
          "$ref": "#/$defs/ContentLink",
          "description": "Gets or sets the package content link."
        }
      },
      "required": [
        "contentLink"
      ]
    },
    "Resource": {
      "type": "object",
      "description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
      "x-ae-placeholder": true
    },
    "TrackedResource": {
      "type": "object",
      "title": "Tracked Resource",
      "description": "The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'",
      "properties": {
        "tags": {
          "type": "object",
          "description": "Resource tags.",
          "additionalProperties": {
            "type": "string"
          },
          "x-ms-mutability": [
            "read",
            "create",
            "update"
          ]
        },
        "location": {
          "type": "string",
          "description": "The geo-location where the resource lives",
          "x-ms-mutability": [
            "read",
            "create"
          ]
        }
      },
      "required": [
        "location"
      ],
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    }
  }
}