{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pure-storage/json-schema/pure-storage-test-result-with-resource-get-response-schema.json",
  "title": "TestResultWithResourceGetResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pure-storage-alert-watchers-api-openapi.yml#/components/schemas/TestResultWithResourceGetResponse",
  "allOf": [
    {
      "$ref": "#/$defs/TotalItemCountResponse"
    },
    {
      "$ref": "#/$defs/_errorContextResponse"
    },
    {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/TestResultWithResource"
          }
        }
      }
    }
  ],
  "$defs": {
    "TestResult": {
      "type": "object",
      "properties": {
        "component_address": {
          "description": "Address of the component running the test.",
          "type": "string"
        },
        "component_name": {
          "description": "Name of the component running the test.",
          "type": "string"
        },
        "description": {
          "description": "What the test is doing.",
          "type": "string"
        },
        "destination": {
          "description": "The URI of the target server being tested.",
          "type": "string"
        },
        "enabled": {
          "description": "Whether the object being tested is enabled or not.\nReturns a value of `true` if the the service is enabled.\nReturns a value of `false` if the service is disabled.\n",
          "type": "boolean"
        },
        "result_details": {
          "description": "Additional information about the test result.",
          "type": "string"
        },
        "success": {
          "description": "Whether the object being tested passed the test or not.\nReturns a value of `true` if the specified test has succeeded.\nReturns a value of `false` if the specified test has failed.\n",
          "type": "boolean"
        },
        "test_type": {
          "description": "Displays the type of test being performed. The returned values are determined\nby the `resource` being tested and its configuration.\nValues include `array-admin-group-searching`, `binding`, `connecting`, `phonehome`,\n`phonehome-ping`, `remote-assist`, `rootdse-searching`, `read-only-group-searching`,\n`storage-admin-group-searching`, and `validate-ntp-configuration`.\n",
          "type": "string"
        }
      }
    },
    "TestResultWithResource": {
      "allOf": [
        {
          "$ref": "#/$defs/TestResult"
        },
        {
          "$ref": "#/$defs/_context"
        },
        {
          "type": "object",
          "properties": {
            "resource": {
              "description": "A reference to the object being tested.",
              "title": "FixedReferenceNoId",
              "allOf": [
                {
                  "$ref": "#/$defs/_fixedReferenceNoId"
                }
              ]
            }
          }
        }
      ]
    },
    "TotalItemCountResponse": {
      "type": "object",
      "properties": {
        "total_item_count": {
          "description": "The total number of records after applying all filter query parameters.\nThe `total_item_count` will be calculated if and only if the corresponding\nquery parameter `total_item_count` is set to `true`. If this query parameter\nis not set or set to `false`, a value of `null` will be returned.\n",
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "_context": {
      "type": "object",
      "properties": {
        "context": {
          "description": "The context in which the operation was performed.\n\nValid values include a reference to any array which is a member of the same fleet\nor to the fleet itself.\n\nOther parameters provided with the request, such as names of volumes or snapshots,\nare resolved relative to the provided `context`.\n",
          "readOnly": true,
          "title": "FixedReferenceWithType",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReferenceWithType"
            }
          ]
        }
      }
    },
    "_errorContextResponse": {
      "type": "object",
      "properties": {
        "errors": {
          "description": "The list of errors encountered when attempting to perform an operation.",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "#/$defs/_errorcontextresponseErrors"
          }
        }
      }
    },
    "_errorcontextresponseErrors": {
      "type": "object",
      "properties": {
        "context": {
          "description": "Contains information relating to the cause of this error,\nor the name of the object that was being processed when the error was encountered.\nThis may be `null` for more general errors.\n",
          "type": "string"
        },
        "location_context": {
          "description": "Contains information relating to the context in which the request was executing\nwhen the error occurred.\nFor example, this may be the name of an array in the same fleet.\nThis may be `null` for more general errors, or if no explicit `context` parameter\nwas provided with the request.\n",
          "title": "FixedReferenceWithType",
          "allOf": [
            {
              "$ref": "#/$defs/_fixedReferenceWithType"
            }
          ]
        },
        "message": {
          "description": "A description of the error which occurred.",
          "type": "string"
        }
      },
      "x-aliases": [
        "_errorContextResponseErrors"
      ]
    },
    "_fixedReference": {
      "type": "object",
      "properties": {
        "id": {
          "description": "A globally unique, system-generated ID.\nThe ID cannot be modified.\n",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "The resource name, such as volume name, file system name,\nsnapshot name, and so on.\n",
          "type": "string",
          "readOnly": true
        }
      },
      "x-readOnly": true,
      "x-aliases": [
        "_fixedReferenceWithoutType"
      ]
    },
    "_fixedReferenceNoId": {
      "type": "object",
      "properties": {
        "name": {
          "description": "The resource name,\nsuch as volume name, pod name, snapshot name, and so on.\n",
          "type": "string",
          "readOnly": true
        }
      },
      "x-readOnly": true
    },
    "_fixedReferenceWithType": {
      "allOf": [
        {
          "$ref": "#/$defs/_fixedReference"
        },
        {
          "type": "object",
          "properties": {
            "resource_type": {
              "description": "Type of the object (full name of the endpoint).\nValid values are the unique part of the resource's REST endpoint.\nFor example, a reference to a file system would have a\n`resource_type` of `file-systems`.\n",
              "type": "string",
              "readOnly": true
            }
          }
        }
      ],
      "x-aliases": [
        "_fixedReference"
      ]
    }
  }
}