{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-activity-schema.json",
  "title": "Activity",
  "description": "Definition of the activity.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-activity-api-openapi.yml#/components/schemas/Activity",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Gets or sets the id of the resource."
    },
    "name": {
      "type": "string",
      "description": "Gets the name of the activity.",
      "readOnly": true
    },
    "properties": {
      "$ref": "#/$defs/ActivityProperties",
      "description": "Gets or sets the properties of the activity.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "ActivityOutputType": {
      "type": "object",
      "description": "Definition of the activity output type.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the activity output type."
        },
        "type": {
          "type": "string",
          "description": "Gets or sets the type of the activity output type."
        }
      }
    },
    "ActivityParameter": {
      "type": "object",
      "description": "Definition of the activity parameter.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the activity parameter."
        },
        "type": {
          "type": "string",
          "description": "Gets or sets the type of the activity parameter."
        },
        "isMandatory": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional."
        },
        "isDynamic": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value that indicates true if the parameter is dynamic."
        },
        "position": {
          "type": "integer",
          "format": "int64",
          "description": "Gets or sets the position of the activity parameter."
        },
        "valueFromPipeline": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object."
        },
        "valueFromPipelineByPropertyName": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name."
        },
        "valueFromRemainingArguments": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values."
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description of the activity parameter."
        },
        "validationSet": {
          "type": "array",
          "description": "Gets or sets the validation set of activity parameter.",
          "items": {
            "$ref": "#/$defs/ActivityParameterValidationSet"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "ActivityParameterSet": {
      "type": "object",
      "description": "Definition of the activity parameter set.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Gets or sets the name of the activity parameter set."
        },
        "parameters": {
          "type": "array",
          "description": "Gets or sets the parameters of the activity parameter set.",
          "items": {
            "$ref": "#/$defs/ActivityParameter"
          },
          "x-ms-identifiers": []
        }
      }
    },
    "ActivityParameterValidationSet": {
      "type": "object",
      "description": "Definition of the activity parameter validation set.",
      "properties": {
        "memberValue": {
          "type": "string",
          "description": "Gets or sets the name of the activity parameter validation set member."
        }
      }
    },
    "ActivityProperties": {
      "type": "object",
      "description": "Properties of the activity.",
      "properties": {
        "definition": {
          "type": "string",
          "description": "Gets or sets the user name of the activity."
        },
        "parameterSets": {
          "type": "array",
          "description": "Gets or sets the parameter sets of the activity.",
          "items": {
            "$ref": "#/$defs/ActivityParameterSet"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "outputTypes": {
          "type": "array",
          "description": "Gets or sets the output types of the activity.",
          "items": {
            "$ref": "#/$defs/ActivityOutputType"
          },
          "x-ms-identifiers": [
            "name"
          ]
        },
        "creationTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the creation time."
        },
        "lastModifiedTime": {
          "type": "string",
          "format": "date-time",
          "description": "Gets or sets the last modified time."
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description."
        }
      }
    }
  }
}