{"version":3,"sources":["../../../packages/core/shared/gateway-inventory/gateway-inventory.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,oBAAY,WAAW;IACnB;;OAEG;IACH,OAAO,IAAI;IAEX;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,GAAG,IAAA;CACN;AAED,oBAAY,sBAAsB;IAC9B;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,WAAW,IAAA;IAEX;;OAEG;IACH,IAAI,IAAA;CACP;AAED;;GAEG;AACH,oBAAY,uBAAuB;IAC/B;;OAEG;IACH,gBAAgB,qBAAqB;IAErC;;OAEG;IACH,QAAQ,aAAa;CACxB;AAED;;GAEG;AACH,oBAAY,eAAe;IACvB;;OAEG;IACH,QAAQ,aAAa;IAErB;;OAEG;IACH,OAAO,YAAY;IAEnB;;OAEG;IACH,MAAM,WAAW;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,0BAA0B,EAAE,MAAM,CAAC;IAEnC;;OAEG;IACH,4BAA4B,EAAE,MAAM,CAAC;IAErC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;IAElB;;OAEG;IACH,sBAAsB,EAAE,sBAAsB,CAAC;IAE/C;;OAEG;IACH,wBAAwB,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,kBAAkB,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;GAEG;AACH,qBAAa,gBAAiB,YAAW,oBAAoB;IACzD;;OAEG;IACI,oBAAoB,EAAE,MAAM,CAAC;IAEpC;;OAEG;IACI,sBAAsB,EAAE,MAAM,CAAC;IAEtC;;OAEG;IACI,0BAA0B,EAAE,MAAM,CAAC;IAE1C;;OAEG;IACI,4BAA4B,EAAE,MAAM,CAAC;IAE5C;;OAEG;IACI,cAAc,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACI,qBAAqB,EAAE,MAAM,CAAC;IAErC;;OAEG;IACI,cAAc,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACI,aAAa,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACI,qBAAqB,EAAE,MAAM,CAAC;IAErC;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACI,IAAI,EAAE,WAAW,CAAC;IAEzB;;OAEG;IACI,sBAAsB,EAAE,sBAAsB,CAAC;IAEtD;;OAEG;IACI,wBAAwB,EAAE,OAAO,CAAC;IAEzC;;OAEG;IACI,GAAG,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACI,gBAAgB,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACI,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAEpC;;;;OAIG;gBACS,IAAI,CAAC,EAAE,oBAAoB;CAK1C","file":"gateway-inventory.d.ts","sourcesContent":["/**\r\n * Gateway Inventory query parameters.\r\n */\r\nexport interface GatewayInventoryParams {\r\n    /**\r\n     * no control of auth handling if set true.\r\n     */\r\n    noAuth?: boolean;\r\n}\r\n\r\n/**\r\n * The mode that the gateway is running as.\r\n */\r\nexport enum GatewayMode {\r\n    /**\r\n     * Indicates the Gateway is running as a service\r\n     */\r\n    Service = 1,\r\n\r\n    /**\r\n     * Indicates the Gateway is running as a desktop application\r\n     */\r\n    Desktop,\r\n\r\n    /**\r\n     * Indicates the Gateway is running as a UWP application\r\n     */\r\n    App\r\n}\r\n\r\nexport enum GatewayOperationalMode {\r\n    /**\r\n     * Indicates the Gateway is running in production mode\r\n     */\r\n    Production,\r\n\r\n    /**\r\n     * Indicates the Gateway is running in development mode\r\n     */\r\n    Development,\r\n\r\n    /**\r\n     * Indicates the Gateway is running in a pipeline for tests.\r\n     */\r\n    Test\r\n}\r\n\r\n/**\r\n * Windows admin center Installation Types\r\n */\r\nexport enum GatewayInstallationType {\r\n    /**\r\n     * Indicating installation type as an azure vm extension\r\n     */\r\n    AzureVmExtension = 'AzureVmExtension',\r\n\r\n    /**\r\n     * Standard installation type\r\n     */\r\n    Standard = 'Standard'\r\n}\r\n\r\n/**\r\n * Windows Admin Center connection type\r\n */\r\nexport enum ConnectionsType {\r\n    /**\r\n     * Standard connection type. WAC will show connection list upon connecting\r\n     */\r\n    Standard = 'standard',\r\n\r\n    /**\r\n     * Indicates connecting to a cluster on Azure Portal. WAC will lock to Cluster Manager view.\r\n     */\r\n    Cluster = 'cluster',\r\n\r\n    /**\r\n     * Indicates connecting to a server on Azure Portal. WAC will lock to Server Manager view.\r\n     */\r\n    Server = 'server'\r\n}\r\n\r\n/**\r\n * Gateway Inventory data interface.\r\n */\r\nexport interface GatewayInventoryData {\r\n    /**\r\n     * The available memory in MBytes.\r\n     */\r\n    availableMemoryMByte: number;\r\n\r\n    /**\r\n     * The working set of gateway process.\r\n     */\r\n    gatewayWorkingSetMByte: number;\r\n\r\n    /**\r\n     * The total cpu utilization.\r\n     */\r\n    totalCpuUtilizationPercent: number;\r\n\r\n    /**\r\n     * The gateway cpu utilization.\r\n     */\r\n    gatewayCpuUtilizationPercent: number;\r\n\r\n    /**\r\n     * The gateway version.\r\n     */\r\n    gatewayVersion: string;\r\n\r\n    /**\r\n     * The gateway display version.\r\n     */\r\n    gatewayDisplayVersion: string;\r\n\r\n    /**\r\n     * The friendly OS name.\r\n     */\r\n    friendlyOsName: string;\r\n\r\n    /**\r\n     * The msi installed date.\r\n     */\r\n    installedDate: string;\r\n\r\n    /**\r\n     * The logical processor count.\r\n     */\r\n    logicalProcessorCount: number;\r\n\r\n    /**\r\n     * The gateway name.\r\n     */\r\n    name: string;\r\n\r\n    /**\r\n     * The mode that the gateway is running as.\r\n     */\r\n    mode: GatewayMode;\r\n\r\n    /**\r\n     * The operational mode that the gateway is running as\r\n     */\r\n    gatewayOperationalMode: GatewayOperationalMode;\r\n\r\n    /**\r\n     * The status of gateway process - if it is running elevated or not.\r\n     */\r\n    isGatewayProcessElevated: boolean;\r\n\r\n    /**\r\n     * The installation type of Windows Admin Center\r\n     */\r\n    installationType: string;\r\n\r\n    /**\r\n     * The origins allowed by the gateway to host windows admin center in an iframe or other window context\r\n     */\r\n    allowedHostOrigins: string[];\r\n}\r\n\r\n/**\r\n * Gateway Inventory class.\r\n */\r\nexport class GatewayInventory implements GatewayInventoryData {\r\n    /**\r\n     * The available memory in MBytes.\r\n     */\r\n    public availableMemoryMByte: number;\r\n\r\n    /**\r\n     * The working set of gateway process.\r\n     */\r\n    public gatewayWorkingSetMByte: number;\r\n\r\n    /**\r\n     * The total cpu utilization.\r\n     */\r\n    public totalCpuUtilizationPercent: number;\r\n\r\n    /**\r\n     * The gateway cpu utilization.\r\n     */\r\n    public gatewayCpuUtilizationPercent: number;\r\n\r\n    /**\r\n     * The gateway version.\r\n     */\r\n    public gatewayVersion: string;\r\n\r\n    /**\r\n     * The gateway display version.\r\n     */\r\n    public gatewayDisplayVersion: string;\r\n\r\n    /**\r\n     * The friendly OS name.\r\n     */\r\n    public friendlyOsName: string;\r\n\r\n    /**\r\n     * The msi installed date.\r\n     */\r\n    public installedDate: string;\r\n\r\n    /**\r\n     * The logical processor count.\r\n     */\r\n    public logicalProcessorCount: number;\r\n\r\n    /**\r\n     * The gateway name.\r\n     */\r\n    public name: string;\r\n\r\n    /**\r\n     * The mode that the gateway is running as.\r\n     */\r\n    public mode: GatewayMode;\r\n\r\n    /**\r\n     * The operational mode that the gateway is running as\r\n     */\r\n    public gatewayOperationalMode: GatewayOperationalMode;\r\n\r\n    /**\r\n     * The status of gateway process - if it is running elevated or not.\r\n     */\r\n    public isGatewayProcessElevated: boolean;\r\n\r\n    /**\r\n     * JWK - JSON Web Key to encrypt password data.\r\n     */\r\n    public jwk: string;\r\n\r\n    /**\r\n     * The installation type of Windows Admin Center\r\n     */\r\n    public installationType: string;\r\n\r\n    /**\r\n     * The origins allowed by the gateway to host windows admin center in an iframe or other window context\r\n     */\r\n    public allowedHostOrigins: string[];\r\n\r\n    /**\r\n     * Initializes a new instance of the GatewayInventory Class.\r\n     *\r\n     * @param data the server inventory recovered data.\r\n     */\r\n    constructor(data?: GatewayInventoryData) {\r\n        if (data) {\r\n            Object.assign(this, data);\r\n        }\r\n    }\r\n}\r\n"]}