private void ProcessRecordType(string vbd) { RunApiCall(() => { vbd_type obj = XenAPI.VBD.get_type(session, vbd); WriteObject(obj, true); }); }
public static string ToString(vbd_type x) { switch (x) { case vbd_type.CD: return "CD"; case vbd_type.Disk: return "Disk"; default: return "unknown"; } }
public static string ToString(vbd_type x) { switch (x) { case vbd_type.CD: return("CD"); case vbd_type.Disk: return("Disk"); } return("unknown"); }
public static string StringOf(this vbd_type x) { switch (x) { case vbd_type.CD: return("CD"); case vbd_type.Disk: return("Disk"); case vbd_type.Floppy: return("Floppy"); default: return("unknown"); } }
public VBD(string uuid, List <vbd_operations> allowed_operations, Dictionary <string, vbd_operations> current_operations, XenRef <VM> VM, XenRef <VDI> VDI, string device, string userdevice, bool bootable, vbd_mode mode, vbd_type type, bool unpluggable, bool storage_lock, bool empty, Dictionary <string, string> other_config, bool currently_attached, long status_code, string status_detail, Dictionary <string, string> runtime_properties, string qos_algorithm_type, Dictionary <string, string> qos_algorithm_params, string[] qos_supported_algorithms, XenRef <VBD_metrics> metrics) { this.uuid = uuid; this.allowed_operations = allowed_operations; this.current_operations = current_operations; this.VM = VM; this.VDI = VDI; this.device = device; this.userdevice = userdevice; this.bootable = bootable; this.mode = mode; this.type = type; this.unpluggable = unpluggable; this.storage_lock = storage_lock; this.empty = empty; this.other_config = other_config; this.currently_attached = currently_attached; this.status_code = status_code; this.status_detail = status_detail; this.runtime_properties = runtime_properties; this.qos_algorithm_type = qos_algorithm_type; this.qos_algorithm_params = qos_algorithm_params; this.qos_supported_algorithms = qos_supported_algorithms; this.metrics = metrics; }
public static string ToString(vbd_type x) { return(x.StringOf()); }
public static void set_type(Session session, string _vbd, vbd_type _type) { session.proxy.vbd_set_type(session.uuid, (_vbd != null) ? _vbd : "", vbd_type_helper.ToString(_type)).parse(); }