UNPKG

@microsoft/windows-admin-center-sdk

Version:

Microsoft - Windows Admin Center Shell

147 lines (145 loc) 3.9 kB
/** * The mode that the gateway is running as. */ export var GatewayMode; (function (GatewayMode) { /** * Indicates the Gateway is running as a service */ GatewayMode[GatewayMode["Service"] = 1] = "Service"; /** * Indicates the Gateway is running as a desktop application */ GatewayMode[GatewayMode["Desktop"] = 2] = "Desktop"; /** * Indicates the Gateway is running as a UWP application */ GatewayMode[GatewayMode["App"] = 3] = "App"; })(GatewayMode || (GatewayMode = {})); export var GatewayOperationalMode; (function (GatewayOperationalMode) { /** * Indicates the Gateway is running in production mode */ GatewayOperationalMode[GatewayOperationalMode["Production"] = 0] = "Production"; /** * Indicates the Gateway is running in development mode */ GatewayOperationalMode[GatewayOperationalMode["Development"] = 1] = "Development"; /** * Indicates the Gateway is running in a pipeline for tests. */ GatewayOperationalMode[GatewayOperationalMode["Test"] = 2] = "Test"; })(GatewayOperationalMode || (GatewayOperationalMode = {})); /** * Windows admin center Installation Types */ export var GatewayInstallationType; (function (GatewayInstallationType) { /** * Indicating installation type as an azure vm extension */ GatewayInstallationType["AzureVmExtension"] = "AzureVmExtension"; /** * Standard installation type */ GatewayInstallationType["Standard"] = "Standard"; })(GatewayInstallationType || (GatewayInstallationType = {})); /** * Windows Admin Center connection type */ export var ConnectionsType; (function (ConnectionsType) { /** * Standard connection type. WAC will show connection list upon connecting */ ConnectionsType["Standard"] = "standard"; /** * Indicates connecting to a cluster on Azure Portal. WAC will lock to Cluster Manager view. */ ConnectionsType["Cluster"] = "cluster"; /** * Indicates connecting to a server on Azure Portal. WAC will lock to Server Manager view. */ ConnectionsType["Server"] = "server"; })(ConnectionsType || (ConnectionsType = {})); /** * Gateway Inventory class. */ export class GatewayInventory { /** * The available memory in MBytes. */ availableMemoryMByte; /** * The working set of gateway process. */ gatewayWorkingSetMByte; /** * The total cpu utilization. */ totalCpuUtilizationPercent; /** * The gateway cpu utilization. */ gatewayCpuUtilizationPercent; /** * The gateway version. */ gatewayVersion; /** * The gateway display version. */ gatewayDisplayVersion; /** * The friendly OS name. */ friendlyOsName; /** * The msi installed date. */ installedDate; /** * The logical processor count. */ logicalProcessorCount; /** * The gateway name. */ name; /** * The mode that the gateway is running as. */ mode; /** * The operational mode that the gateway is running as */ gatewayOperationalMode; /** * The status of gateway process - if it is running elevated or not. */ isGatewayProcessElevated; /** * JWK - JSON Web Key to encrypt password data. */ jwk; /** * The installation type of Windows Admin Center */ installationType; /** * The origins allowed by the gateway to host windows admin center in an iframe or other window context */ allowedHostOrigins; /** * Initializes a new instance of the GatewayInventory Class. * * @param data the server inventory recovered data. */ constructor(data) { if (data) { Object.assign(this, data); } } } //# sourceMappingURL=gateway-inventory.js.map