Exemplo n.º 1
0
        public static string StringOf(this network_purpose x)
        {
            switch (x)
            {
            case network_purpose.nbd:
                return("nbd");

            case network_purpose.insecure_nbd:
                return("insecure_nbd");

            default:
                return("unknown");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Remove a purpose from a network (if present)
 /// First published in Unreleased.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_network">The opaque_ref of the given network</param>
 /// <param name="_value">The purpose to remove</param>
 public static XenRef <Task> async_remove_purpose(Session session, string _network, network_purpose _value)
 {
     return(XenRef <Task> .Create(session.proxy.async_network_remove_purpose(session.uuid, _network ?? "", network_purpose_helper.ToString(_value)).parse()));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Remove a purpose from a network (if present)
 /// First published in Unreleased.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_network">The opaque_ref of the given network</param>
 /// <param name="_value">The purpose to remove</param>
 public static void remove_purpose(Session session, string _network, network_purpose _value)
 {
     session.proxy.network_remove_purpose(session.uuid, _network ?? "", network_purpose_helper.ToString(_value)).parse();
 }
Exemplo n.º 4
0
 public static string ToString(network_purpose x)
 {
     return(x.StringOf());
 }