{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-postgresql/json-schema/microsoft-azure-postgresql-configuration-schema.json",
  "title": "Configuration",
  "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/Configuration",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ConfigurationProperties",
      "description": "Properties of a configuration (also known as server parameter).",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$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
        }
      }
    },
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    }
  }
}