public Network(string uuid, string name_label, string name_description, List <network_operations> allowed_operations, Dictionary <string, network_operations> current_operations, List <XenRef <VIF> > VIFs, List <XenRef <PIF> > PIFs, long MTU, Dictionary <string, string> other_config, string bridge, bool managed, Dictionary <string, XenRef <Blob> > blobs, string[] tags, network_default_locking_mode default_locking_mode, Dictionary <XenRef <VIF>, string> assigned_ips, List <network_purpose> purpose) { this.uuid = uuid; this.name_label = name_label; this.name_description = name_description; this.allowed_operations = allowed_operations; this.current_operations = current_operations; this.VIFs = VIFs; this.PIFs = PIFs; this.MTU = MTU; this.other_config = other_config; this.bridge = bridge; this.managed = managed; this.blobs = blobs; this.tags = tags; this.default_locking_mode = default_locking_mode; this.assigned_ips = assigned_ips; this.purpose = purpose; }
private void ProcessRecordDefaultLockingMode(string network) { RunApiCall(() => { network_default_locking_mode obj = XenAPI.Network.get_default_locking_mode(session, network); WriteObject(obj, true); }); }
public static string ToString(network_default_locking_mode x) { switch (x) { case network_default_locking_mode.unlocked: return "unlocked"; case network_default_locking_mode.disabled: return "disabled"; default: return "unknown"; } }
public static string ToString(network_default_locking_mode x) { switch (x) { case network_default_locking_mode.unlocked: return("unlocked"); case network_default_locking_mode.disabled: return("disabled"); } return("unknown"); }
public static string StringOf(this network_default_locking_mode x) { switch (x) { case network_default_locking_mode.unlocked: return("unlocked"); case network_default_locking_mode.disabled: return("disabled"); default: return("unknown"); } }
/// <summary> /// Set the default locking mode for VIFs attached to this network /// First published in XenServer 6.1. /// </summary> /// <param name="session">The session</param> /// <param name="_network">The opaque_ref of the given network</param> /// <param name="_value">The default locking mode for VIFs attached to this network.</param> public static XenRef <Task> async_set_default_locking_mode(Session session, string _network, network_default_locking_mode _value) { return(XenRef <Task> .Create(session.proxy.async_network_set_default_locking_mode(session.uuid, _network ?? "", network_default_locking_mode_helper.ToString(_value)).parse())); }
/// <summary> /// Set the default locking mode for VIFs attached to this network /// First published in XenServer 6.1. /// </summary> /// <param name="session">The session</param> /// <param name="_network">The opaque_ref of the given network</param> /// <param name="_value">The default locking mode for VIFs attached to this network.</param> public static void set_default_locking_mode(Session session, string _network, network_default_locking_mode _value) { session.proxy.network_set_default_locking_mode(session.uuid, _network ?? "", network_default_locking_mode_helper.ToString(_value)).parse(); }
public static string ToString(network_default_locking_mode x) { return(x.StringOf()); }