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E/C;;OAEG;IACI,aAAa,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACI,0BAA0B,EAAE,OAAO,CAAC;IAE3C;;OAEG;IACI,qBAAqB,EAAE,OAAO,CAAC;IAEtC;;OAEG;IACI,2BAA2B,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACI,IAAI,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACI,wBAAwB,EAAE,OAAO,CAAC;IAEzC;;OAEG;IACI,SAAS,EAAE,MAAM,EAAE,CAAC;IAE3B;;OAEG;IACI,KAAK,EAAE,eAAe,EAAE,CAAC;IAEhC;;OAEG;IACI,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IAExD;;OAEG;IACI,kBAAkB,EAAE,MAAM,CAAC;IAElC;;OAEG;IACI,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhC;;;;;OAKG;gBACgB,WAAW,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB;CAKtE","file":"cluster-inventory.d.ts","sourcesContent":["import { PowerShellSessionRequestOptions } from '../../data/powershell';\r\nimport { ServerInventory } from '../server-inventory/server-inventory';\r\nimport { ClusterNodeInventory } from './cluster-node-inventory';\r\n\r\n/**\r\n * Cluster Inventory query parameters.\r\n */\r\nexport interface ClusterInventoryParams {\r\n    /**\r\n     * name of cluster node.\r\n     */\r\n    name: string;\r\n\r\n    /**\r\n     * options for PowerShell session request.\r\n     */\r\n    requestOptions?: PowerShellSessionRequestOptions;\r\n}\r\n\r\n/**\r\n * Cluster Inventory data interface.\r\n */\r\nexport interface ClusterInventoryData {\r\n    /**\r\n     * The name of cluster connection\r\n     */\r\n    clusterName: string;\r\n\r\n    /**\r\n     * The FQDN of cluster if any.\r\n     */\r\n    fqdn: string;\r\n\r\n    /**\r\n     * Indicates if the cluster is S2d\r\n     */\r\n    isS2dEnabled: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster has Britannica (sddc management resources)\r\n     */\r\n    isBritannicaEnabled: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster has Britannica (sddc management resources) virtual machine\r\n     */\r\n    isBritannicaVirtualMachineEnabled: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster has Britannica (sddc management resources) virtual switch\r\n     */\r\n    isBritannicaVirtualSwitchEnabled: boolean;\r\n\r\n    /**\r\n     * Indicating if the PowerShell cmdlet of Microsoft Cluster Health is available.\r\n     */\r\n    isClusterHealthCmdletAvailable: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster cmdlet is installed\r\n     */\r\n    isClusterCmdletAvailable: boolean;\r\n\r\n    /**\r\n     * The Node inventories of the cluster\r\n     */\r\n    nodeNames: string[];\r\n\r\n    /**\r\n     * The Nodes of the cluster\r\n     */\r\n    nodes: ServerInventory[];\r\n\r\n    /**\r\n     * The map of node fully qualified domain names (fqdn) to Node inventories\r\n     */\r\n    nodeMap: MsftSme.StringMap<ClusterNodeInventory>;\r\n}\r\n\r\n/**\r\n * Cluster Inventory class.\r\n */\r\nexport class ClusterInventory implements ClusterInventoryData {\r\n    /**\r\n     * Indicates if the cluster is S2d\r\n     */\r\n    public isS2dEnabled: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster has Britannica (sddc management resources)\r\n     */\r\n    public isBritannicaEnabled: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster has Britannica (sddc management resources) virtual machine\r\n     */\r\n    public isBritannicaVirtualMachineEnabled: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster has Britannica (sddc management resources) virtual switch\r\n     */\r\n    public isBritannicaVirtualSwitchEnabled: boolean;\r\n\r\n    /**\r\n     * Indicating if the PowerShell cmdlet of Microsoft Cluster Health is available.\r\n     */\r\n    public isClusterHealthCmdletAvailable: boolean;\r\n\r\n    /**\r\n     * Indicates if the cluster has the time series database enabled on all nodes\r\n     */\r\n    public isTsdbEnabled: boolean;\r\n\r\n    /**\r\n     * Indicating if the server has ManagementTools namespace on all nodes in cluster\r\n     */\r\n    public isManagementToolsAvailable: boolean;\r\n\r\n    /**\r\n     * Indicates if the hyper-v role is installed on all nodes in cluster\r\n     */\r\n    public isHyperVRoleInstalled: boolean;\r\n\r\n    /**\r\n     * Indicates if the hyper-v powershell feature is installed on all nodes in the cluster\r\n     */\r\n    public isHyperVPowershellInstalled: boolean;\r\n\r\n    /**\r\n     * The FQDN of cluster if any\r\n     */\r\n    public fqdn: string;\r\n\r\n    /**\r\n     * Indicates if the cluster cmdlet is installed on all nodes\r\n     */\r\n    public isClusterCmdletAvailable: boolean;\r\n\r\n    /**\r\n     * The Node inventories of the cluster\r\n     */\r\n    public nodeNames: string[];\r\n\r\n    /**\r\n     * The Nodes of the cluster\r\n     */\r\n    public nodes: ServerInventory[];\r\n\r\n    /**\r\n     * The map of node names to ClusterNodes\r\n     */\r\n    public nodeMap: MsftSme.StringMap<ClusterNodeInventory>;\r\n\r\n    /**\r\n     * the name of the node the cluster is running on\r\n     */\r\n    public currentClusterNode: string;\r\n\r\n    /**\r\n     * any errors when fetching cluster data\r\n     */\r\n    public clusterErrors?: string[];\r\n\r\n    /**\r\n     * Initializes a new instance of the ServerInventory Class.\r\n     *\r\n     * @param clusterName the server name to query.\r\n     * @param data the server inventory recovered data.\r\n     */\r\n    constructor(public clusterName: string, data?: ClusterInventoryData) {\r\n        if (data) {\r\n            Object.assign(this, data);\r\n        }\r\n    }\r\n}\r\n"]}