{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotapi-robot-data-gateway-get-resp-schema.json",
  "title": "robotapiRobotDataGatewayGetResp",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-get-data-gateway-enrollments-api-openapi.yml#/components/schemas/robotapiRobotDataGatewayGetResp",
  "type": "object",
  "properties": {
    "return": {
      "$ref": "#/$defs/robotapiRobotResponseInfo"
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/robotapiRobotDataGateway"
      }
    },
    "total_count": {
      "type": "integer",
      "format": "int32",
      "title": "Number of total Data Gateways available at present"
    }
  },
  "$defs": {
    "RobotDataGatewayConfigAdminState": {
      "type": "string",
      "enum": [
        "UNKNOWN_AS",
        "AS_UP",
        "AS_DOWN"
      ],
      "default": "UNKNOWN_AS"
    },
    "RobotDataGatewayConfigCert": {
      "type": "object",
      "properties": {
        "certificate": {
          "type": "string"
        }
      }
    },
    "RobotDataGatewayConfigInterface": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "mac": {
          "type": "string"
        },
        "ip_addr": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/robotapiRobotInetAddr"
          }
        }
      }
    },
    "RobotDataGatewayConfigProfile": {
      "type": "object",
      "properties": {
        "cpu": {
          "type": "integer",
          "format": "int64"
        },
        "memory": {
          "type": "integer",
          "format": "int64"
        },
        "nics": {
          "type": "integer",
          "format": "int64"
        }
      }
    },
    "RobotDataGatewayConfigRole": {
      "type": "string",
      "enum": [
        "INVALID_ROLE",
        "ACTIVE",
        "PASSIVE"
      ],
      "default": "INVALID_ROLE"
    },
    "RobotDataGatewayOperationalComponentState": {
      "type": "string",
      "enum": [
        "CS_UNKNOWN",
        "CS_UP",
        "CS_DOWN"
      ],
      "default": "CS_UNKNOWN"
    },
    "RobotDataGatewayOperationalOperationStatusDetails": {
      "type": "object",
      "properties": {
        "component_name": {
          "type": "string"
        },
        "state": {
          "$ref": "#/$defs/RobotDataGatewayOperationalComponentState"
        },
        "state_reason": {
          "type": "string"
        }
      }
    },
    "RobotDataGatewayOperationalOperationalState": {
      "type": "string",
      "enum": [
        "INVALID_OS",
        "OS_UNKNOWN",
        "OS_UP",
        "OS_ERROR",
        "OS_PARTIAL_UP"
      ],
      "default": "INVALID_OS"
    },
    "robotapiRobotDataGateway": {
      "type": "object",
      "properties": {
        "duuid": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "config_data": {
          "$ref": "#/$defs/robotapiRobotDataGatewayConfig"
        },
        "operational_data": {
          "$ref": "#/$defs/robotapiRobotDataGatewayOperational"
        }
      },
      "title": "Data gateway config and operational data"
    },
    "robotapiRobotDataGatewayConfig": {
      "type": "object",
      "properties": {
        "description": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "tags": {
          "type": "string"
        },
        "interfaces": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RobotDataGatewayConfigInterface"
          }
        },
        "cert_chain": {
          "$ref": "#/$defs/RobotDataGatewayConfigCert"
        },
        "profile": {
          "$ref": "#/$defs/RobotDataGatewayConfigProfile"
        },
        "role": {
          "$ref": "#/$defs/RobotDataGatewayConfigRole"
        },
        "admin_state": {
          "$ref": "#/$defs/RobotDataGatewayConfigAdminState"
        }
      }
    },
    "robotapiRobotDataGatewayOperational": {
      "type": "object",
      "properties": {
        "oper_state": {
          "$ref": "#/$defs/RobotDataGatewayOperationalOperationalState"
        },
        "oper_state_details": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RobotDataGatewayOperationalOperationStatusDetails"
          }
        },
        "created_time": {
          "type": "string",
          "format": "int64"
        },
        "last_updated_time": {
          "type": "string",
          "format": "int64"
        }
      }
    },
    "robotapiRobotInetAddr": {
      "description": "Inet Address",
      "type": "object",
      "properties": {
        "inet_af": {
          "$ref": "#/$defs/robotapiRobotInetAddressFamily"
        },
        "inet_addr": {
          "type": "string"
        },
        "mask": {
          "type": "string"
        }
      }
    },
    "robotapiRobotInetAddressFamily": {
      "description": "Inet Address Family",
      "type": "string",
      "enum": [
        "ROBOT_INET_ADDR_TYPE_NONE",
        "ROBOT_INET_ADDR_TYPE_v4",
        "ROBOT_INET_ADDR_TYPE_v6"
      ],
      "default": "ROBOT_INET_ADDR_TYPE_NONE"
    },
    "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"
    }
  }
}