{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-credential-create-or-update-parameters-schema.json",
  "title": "CredentialCreateOrUpdateParameters",
  "description": "The parameters supplied to the create or update credential operation.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-credential-api-openapi.yml#/components/schemas/CredentialCreateOrUpdateParameters",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Gets or sets the name of the credential."
    },
    "properties": {
      "$ref": "#/$defs/CredentialCreateOrUpdateProperties",
      "description": "Gets or sets the properties of the credential.",
      "x-ms-client-flatten": true
    }
  },
  "required": [
    "name",
    "properties"
  ],
  "$defs": {
    "CredentialCreateOrUpdateProperties": {
      "type": "object",
      "description": "The properties of the create credential operation.",
      "properties": {
        "userName": {
          "type": "string",
          "description": "Gets or sets the user name of the credential."
        },
        "password": {
          "type": "string",
          "description": "Gets or sets the password of the credential."
        },
        "description": {
          "type": "string",
          "description": "Gets or sets the description of the credential."
        }
      },
      "required": [
        "userName",
        "password"
      ]
    }
  }
}