{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-integration-services/json-schema/microsoft-azure-integration-services-client-schema.json",
  "title": "Client",
  "description": "The Client resource.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-integration-services-clients-api-openapi.yml#/components/schemas/Client",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/$defs/Resource"
    }
  ],
  "properties": {
    "properties": {
      "$ref": "#/$defs/ClientProperties",
      "description": "The properties of client.",
      "x-ms-client-flatten": true
    },
    "systemData": {
      "$ref": "#/$defs/systemData",
      "description": "The system metadata relating to the Event Grid resource.",
      "type": "object",
      "readOnly": true
    }
  },
  "$defs": {
    "ClientCertificateAuthentication": {
      "description": "The certificate authentication properties for the client.",
      "type": "object",
      "properties": {
        "validationScheme": {
          "description": "The validation scheme used to authenticate the client. Default value is SubjectMatchesAuthenticationName.",
          "enum": [
            "SubjectMatchesAuthenticationName",
            "DnsMatchesAuthenticationName",
            "UriMatchesAuthenticationName",
            "IpMatchesAuthenticationName",
            "EmailMatchesAuthenticationName",
            "ThumbprintMatch"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "ClientCertificateValidationScheme",
            "modelAsString": true
          }
        },
        "allowedThumbprints": {
          "description": "The list of thumbprints that are allowed during client authentication. This property is required only if the validationScheme is 'ThumbprintMatch'.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "ClientProperties": {
      "description": "The properties of client.",
      "type": "object",
      "properties": {
        "description": {
          "description": "Description for the Client resource.",
          "type": "string"
        },
        "authenticationName": {
          "description": "The name presented by the client for authentication. The default value is the name of the resource.",
          "type": "string"
        },
        "clientCertificateAuthentication": {
          "$ref": "#/$defs/ClientCertificateAuthentication",
          "description": "The client certificate authentication information."
        },
        "state": {
          "description": "Indicates if the client is enabled or not. Default value is Enabled.",
          "default": "Enabled",
          "enum": [
            "Enabled",
            "Disabled"
          ],
          "type": "string",
          "x-ms-enum": {
            "name": "ClientState",
            "modelAsString": true
          }
        },
        "attributes": {
          "description": "Attributes for the client. Supported values are int, bool, string, string[].\nExample:\n\"attributes\": { \"room\": \"345\", \"floor\": 12, \"deviceTypes\": [\"Fan\", \"Light\"] }",
          "type": "object",
          "additionalProperties": {}
        },
        "provisioningState": {
          "description": "Provisioning state of the Client resource.",
          "enum": [
            "Creating",
            "Updating",
            "Deleting",
            "Succeeded",
            "Canceled",
            "Failed",
            "Deleted"
          ],
          "type": "string",
          "readOnly": true,
          "x-ms-enum": {
            "name": "ClientProvisioningState",
            "modelAsString": true
          }
        }
      }
    },
    "Resource": {
      "description": "Definition of a Resource.",
      "type": "object",
      "properties": {
        "id": {
          "description": "Fully qualified identifier of the resource.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Name of the resource.",
          "type": "string",
          "readOnly": true
        },
        "type": {
          "description": "Type of the resource.",
          "type": "string",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "systemData": {
      "type": "object",
      "description": "Metadata pertaining to creation and last modification of the resource.",
      "properties": {
        "createdBy": {
          "type": "string",
          "description": "The identity that created the resource."
        },
        "createdByType": {
          "type": "string",
          "description": "The type of identity that created the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource creation (UTC)."
        },
        "lastModifiedBy": {
          "type": "string",
          "description": "The identity that last modified the resource."
        },
        "lastModifiedByType": {
          "type": "string",
          "description": "The type of identity that last modified the resource.",
          "enum": [
            "User",
            "Application",
            "ManagedIdentity",
            "Key"
          ],
          "x-ms-enum": {
            "name": "createdByType",
            "modelAsString": true
          }
        },
        "lastModifiedAt": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of resource last modification (UTC)"
        }
      },
      "readOnly": true
    }
  }
}