{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-connection-type-create-or-update-parameters-schema.json",
  "title": "ConnectionTypeCreateOrUpdateParameters",
  "description": "The parameters supplied to the create or update connection type operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-connectiontype-api-openapi.yml#/components/schemas/ConnectionTypeCreateOrUpdateParameters",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Gets or sets the name of the connection type."
    },
    "properties": {
      "$ref": "#/$defs/ConnectionTypeCreateOrUpdateProperties",
      "description": "Gets or sets the value of the connection type.",
      "x-ms-client-flatten": true
    }
  },
  "required": [
    "name",
    "properties"
  ],
  "$defs": {
    "ConnectionTypeCreateOrUpdateProperties": {
      "type": "object",
      "description": "The properties of the create connection type.",
      "properties": {
        "isGlobal": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value to indicate if the connection type is global."
        },
        "fieldDefinitions": {
          "type": "object",
          "description": "Gets or sets the field definitions of the connection type.",
          "additionalProperties": {
            "$ref": "#/$defs/FieldDefinition"
          }
        }
      },
      "required": [
        "fieldDefinitions"
      ]
    },
    "FieldDefinition": {
      "type": "object",
      "description": "Definition of the connection fields.",
      "properties": {
        "isEncrypted": {
          "type": "boolean",
          "description": "Gets or sets the isEncrypted flag of the connection field definition."
        },
        "isOptional": {
          "type": "boolean",
          "description": "Gets or sets the isOptional flag of the connection field definition."
        },
        "type": {
          "type": "string",
          "description": "Gets or sets the type of the connection field definition."
        }
      },
      "required": [
        "type"
      ]
    }
  }
}