{
  "name": "Tenant",
  "id": "http://com.ingrammicro/appstore/tenant/1.4",
  "apsVersion": "2.0",
  "implements": [
    "http://aps-standard.org/abstract/types/unlimited-resource/1.0"
  ],
  "relations": {
    "account": {
      "type": "http://parallels.com/aps/types/pa/account/1.2",
      "required": true
    }
  },
  "properties": {
    "installed": {
      "type": "array",
      "items": {
        "type": "TenantAppsInfo"
      }
    },
    "actuallyInstalled": {
      "type": "array",
      "items": {
        "type": "TenantAppsInfo"
      }
    },
    "appstoreInstallDetails": {
      "type": "array",
      "items": {
        "type": "ApplicationInstallDetail"
      }
    },
    "settingsOption": {
      "type": "SettingsOption"
    }
  },
  "structures": {
    "TenantAppsInfo": {
      "type": "object",
      "properties": {
        "subsystem": {
          "type": "string",
          "description": "Subsystem ID"
        },
        "applications": {
          "type": "array",
          "description": "Subsystem application infos",
          "items": {
            "type": "TenantAppVersion"
          }
        }
      }
    },
    "TenantAppVersion": {
      "type": "object",
      "properties": {
        "storeAppId": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "state": {
          "type": "string",
          "enum": [
            "installed"
          ]
        }
      }
    },
    "ApplicationInstallDetail": {
      "type": "object",
      "properties": {
        "appId": {
          "type": "string"
        },
        "subSystemName": {
          "type": "string"
        },
        "userType": {
          "type": "string"
        },
        "countInstall": {
          "type": "integer"
        },
        "countUninstall": {
          "type": "integer"
        }
      }
    },
    "SettingsOption": {
      "type": "object",
      "properties": {
        "appsAvailabilityProperty": {
          "type": "array",
          "items": {
            "type": "Property"
          }
        }
      }
    },
    "Property": {
      "type": "object",
      "properties": {
        "jiraAppId": {
          "type": "string"
        },
        "availability": {
          "type": "string"
        }
      }
    }
  }
}