{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotapi-robot-unique-policy-get-resp-schema.json",
  "title": "robotapiRobotUniquePolicyGetResp",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-get-policies-api-openapi.yml#/components/schemas/robotapiRobotUniquePolicyGetResp",
  "type": "object",
  "properties": {
    "return": {
      "$ref": "#/$defs/robotapiRobotResponseInfo"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/robotapiRobotUniquePolicy"
      }
    },
    "total_count": {
      "type": "integer",
      "format": "int32",
      "title": "Number of total providers available at present"
    }
  },
  "$defs": {
    "robotapiRobotInventoryType": {
      "description": "Supported Inventory Type",
      "type": "string",
      "enum": [
        "INV_TYPE_UNKNOWN",
        "INV_TYPE_NODE",
        "INV_TYPE_PROVIDER",
        "INV_TYPE_CREDENTIAL",
        "INV_TYPE_TAG"
      ],
      "default": "INV_TYPE_UNKNOWN"
    },
    "robotapiRobotResponseInfo": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "format": "int64",
          "description": "Typically from an enum defined by the component."
        },
        "desc": {
          "type": "string",
          "description": "Description of error. May not be filled for success error codes."
        }
      },
      "description": "Generic template for responses"
    },
    "robotapiRobotUniquePolicy": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "title": "Unique name"
        },
        "invType": {
          "$ref": "#/$defs/robotapiRobotInventoryType",
          "title": "Inventory Type, In 3.1 version, policies are supported only for Nodes"
        },
        "fields": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Array of field names on which the uniqueness will be maintained"
        },
        "Type": {
          "$ref": "#/$defs/robotapiUniquePolicyType",
          "title": "Combination of all the filed supplied or independent"
        }
      }
    },
    "robotapiUniquePolicyType": {
      "type": "string",
      "enum": [
        "UNKNOWN_TYPE",
        "INDEPENDENT",
        "COMBINED"
      ],
      "default": "UNKNOWN_TYPE"
    }
  }
}