private void ProcessRecordDisplay(string host)
        {
            RunApiCall(() =>
            {
                host_display obj = XenAPI.Host.get_display(session, host);

                WriteObject(obj, true);
            });
        }
Beispiel #2
0
 public static string ToString(host_display x)
 {
     switch (x)
     {
         case host_display.enabled:
             return "enabled";
         case host_display.disable_on_reboot:
             return "disable_on_reboot";
         case host_display.disabled:
             return "disabled";
         case host_display.enable_on_reboot:
             return "enable_on_reboot";
         default:
             return "unknown";
     }
 }
Beispiel #3
0
        public static string ToString(host_display x)
        {
            switch (x)
            {
            case host_display.enabled:
                return("enabled");

            case host_display.disable_on_reboot:
                return("disable_on_reboot");

            case host_display.disabled:
                return("disabled");

            case host_display.enable_on_reboot:
                return("enable_on_reboot");
            }
            return("unknown");
        }
Beispiel #4
0
        public static string StringOf(this host_display x)
        {
            switch (x)
            {
            case host_display.enabled:
                return("enabled");

            case host_display.disable_on_reboot:
                return("disable_on_reboot");

            case host_display.disabled:
                return("disabled");

            case host_display.enable_on_reboot:
                return("enable_on_reboot");

            default:
                return("unknown");
            }
        }
Beispiel #5
0
 public static string ToString(host_display x)
 {
     return(x.StringOf());
 }