{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-postgresql/json-schema/microsoft-azure-postgresql-configuration-for-update-schema.json",
  "title": "ConfigurationForUpdate",
  "description": "Configuration (also known as server parameter).",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-postgresql-configurations-api-openapi.yml#/components/schemas/ConfigurationForUpdate",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ConfigurationProperties",
      "description": "Properties of a configuration (also known as server parameter).",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "ConfigurationDataType": {
      "type": "string",
      "description": "Data type of the configuration (also known as server parameter).",
      "enum": [
        "Boolean",
        "Numeric",
        "Integer",
        "Enumeration",
        "String",
        "Set"
      ],
      "x-ms-enum": {
        "name": "ConfigurationDataType",
        "modelAsString": true,
        "values": [
          {
            "name": "Boolean",
            "value": "Boolean",
            "description": "A boolean value."
          },
          {
            "name": "Numeric",
            "value": "Numeric",
            "description": "A numeric value."
          },
          {
            "name": "Integer",
            "value": "Integer",
            "description": "An integer value."
          },
          {
            "name": "Enumeration",
            "value": "Enumeration",
            "description": "An enumeration value."
          },
          {
            "name": "String",
            "value": "String",
            "description": "A string value."
          },
          {
            "name": "Set",
            "value": "Set",
            "description": "A set of values."
          }
        ]
      }
    },
    "ConfigurationProperties": {
      "type": "object",
      "description": "Properties of a configuration (also known as server parameter).",
      "properties": {
        "value": {
          "type": "string",
          "description": "Value of the configuration (also known as server parameter). Required to update the value assigned to a specific modifiable configuration."
        },
        "description": {
          "type": "string",
          "description": "Description of the configuration (also known as server parameter).",
          "readOnly": true
        },
        "defaultValue": {
          "type": "string",
          "description": "Value assigned by default to the configuration (also known as server parameter).",
          "readOnly": true
        },
        "dataType": {
          "$ref": "#/$defs/ConfigurationDataType",
          "description": "Data type of the configuration (also known as server parameter).",
          "readOnly": true
        },
        "allowedValues": {
          "type": "string",
          "description": "Allowed values of the configuration (also known as server parameter).",
          "readOnly": true
        },
        "source": {
          "type": "string",
          "description": "Source of the value assigned to the configuration (also known as server parameter). Required to update the value assigned to a specific modifiable configuration."
        },
        "isDynamicConfig": {
          "type": "boolean",
          "description": "Indicates if it's a dynamic (true) or static (false) configuration (also known as server parameter). Static server parameters require a server restart after changing the value assigned to them, for the change to take effect. Dynamic server parameters do not require a server restart after changing the value assigned to them, for the change to take effect.",
          "readOnly": true
        },
        "isReadOnly": {
          "type": "boolean",
          "description": "Indicates if it's a read-only (true) or modifiable (false) configuration (also known as server parameter).",
          "readOnly": true
        },
        "isConfigPendingRestart": {
          "type": "boolean",
          "description": "Indicates if the value assigned to the configuration (also known as server parameter) is pending a server restart for it to take effect.",
          "readOnly": true
        },
        "unit": {
          "type": "string",
          "description": "Units in which the configuration (also known as server parameter) value is expressed.",
          "readOnly": true
        },
        "documentationLink": {
          "type": "string",
          "description": "Link pointing to the documentation of the configuration (also known as server parameter).",
          "readOnly": true
        }
      }
    }
  }
}