Class: Constants

by Simon Sparks · 1 October 2025

Over the course of the next 12 months I will be adding functions to this page so bookmark it and come back regularly for new cool features and updates.

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: Constants.ts

import { ActiveDirectoryGroupType } from "./Types_ActiveDirectory";

export class Constants {

    private constructor() { }
    
    //#region public static readonly Constants Simple - Integers - Start

    public static readonly VSPHERE_MAXIMUM_VCPU_COUNT: number = 128;
    public static readonly VSPHERE_MAXIMUM_SCSI_TARGET: number = 16;
    public static readonly VSPHERE_MAX_SCSI_CONTROLLER_UNITS: number = 64;
    public static readonly AUTOMATION_DEFAULT_POLLING_TIME_SECONDS: number = 5;
    public static readonly AUTOMATION_DEFAULT_TIMEOUT_SECONDS: number = 360;
    public static readonly VMFS_VERSION: number = 6;

    //#endregion public static readonly Constants Simple - Integers - End

    //#region public static readonly Constants Simple - Strings - Start

    public static readonly SMTP_SERVER: string = "smtp.office365.com";
    public static readonly DYNAMIC_TYPE_OBJECT_MIME_TYPE: string = "text/json";
    public static readonly DNS_IP_PRIMARY: string = "8.8.8.8";
    public static readonly DNS_IP_SECONDARY: string = "8.8.4.4";
    public static readonly ESXI_SYSLOG_HOST = "loginsight.cloudbuildtools.com"

    //#endregion public static readonly Constants Simple - Strings - End

    //#region public static readonly Constants Complex - Start

    public static readonly ACTIVE_DIRECTORY_GROUP_TYPE: ActiveDirectoryGroupType = {
        Distribution: {
            Global: 2,
            Universal: 8,
            Domain_Local: 4
        },
        Security: {
            Global: -2147483646,
            Universal: - 2147483640,
            Domain_Local: - 2147483644
        }
    };
    
    //#endregion public static readonly Constants Complex - End

}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like