Exemplo n.º 1
0
        public Proxy_PIF ToProxy()
        {
            Proxy_PIF result_ = new Proxy_PIF();

            result_.uuid                  = (uuid != null) ? uuid : "";
            result_.device                = (device != null) ? device : "";
            result_.network               = (network != null) ? network : "";
            result_.host                  = (host != null) ? host : "";
            result_.MAC                   = (MAC != null) ? MAC : "";
            result_.MTU                   = MTU.ToString();
            result_.VLAN                  = VLAN.ToString();
            result_.metrics               = (metrics != null) ? metrics : "";
            result_.physical              = physical;
            result_.currently_attached    = currently_attached;
            result_.ip_configuration_mode = ip_configuration_mode_helper.ToString(ip_configuration_mode);
            result_.IP                      = (IP != null) ? IP : "";
            result_.netmask                 = (netmask != null) ? netmask : "";
            result_.gateway                 = (gateway != null) ? gateway : "";
            result_.DNS                     = (DNS != null) ? DNS : "";
            result_.bond_slave_of           = (bond_slave_of != null) ? bond_slave_of : "";
            result_.bond_master_of          = (bond_master_of != null) ? Helper.RefListToStringArray(bond_master_of) : new string[] {};
            result_.VLAN_master_of          = (VLAN_master_of != null) ? VLAN_master_of : "";
            result_.VLAN_slave_of           = (VLAN_slave_of != null) ? Helper.RefListToStringArray(VLAN_slave_of) : new string[] {};
            result_.management              = management;
            result_.other_config            = Maps.convert_to_proxy_string_string(other_config);
            result_.disallow_unplug         = disallow_unplug;
            result_.tunnel_access_PIF_of    = (tunnel_access_PIF_of != null) ? Helper.RefListToStringArray(tunnel_access_PIF_of) : new string[] {};
            result_.tunnel_transport_PIF_of = (tunnel_transport_PIF_of != null) ? Helper.RefListToStringArray(tunnel_transport_PIF_of) : new string[] {};
            result_.ipv6_configuration_mode = ipv6_configuration_mode_helper.ToString(ipv6_configuration_mode);
            result_.IPv6                    = IPv6;
            result_.ipv6_gateway            = (ipv6_gateway != null) ? ipv6_gateway : "";
            result_.primary_address_type    = primary_address_type_helper.ToString(primary_address_type);
            return(result_);
        }
Exemplo n.º 2
0
        public Proxy_VIF ToProxy()
        {
            Proxy_VIF result_ = new Proxy_VIF();

            result_.uuid = (uuid != null) ? uuid : "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_vif_operations(current_operations);
            result_.device             = (device != null) ? device : "";
            result_.network            = (network != null) ? network : "";
            result_.VM                       = (VM != null) ? VM : "";
            result_.MAC                      = (MAC != null) ? MAC : "";
            result_.MTU                      = MTU.ToString();
            result_.other_config             = Maps.convert_to_proxy_string_string(other_config);
            result_.currently_attached       = currently_attached;
            result_.status_code              = status_code.ToString();
            result_.status_detail            = (status_detail != null) ? status_detail : "";
            result_.runtime_properties       = Maps.convert_to_proxy_string_string(runtime_properties);
            result_.qos_algorithm_type       = (qos_algorithm_type != null) ? qos_algorithm_type : "";
            result_.qos_algorithm_params     = Maps.convert_to_proxy_string_string(qos_algorithm_params);
            result_.qos_supported_algorithms = qos_supported_algorithms;
            result_.metrics                  = (metrics != null) ? metrics : "";
            result_.MAC_autogenerated        = MAC_autogenerated;
            result_.locking_mode             = vif_locking_mode_helper.ToString(locking_mode);
            result_.ipv4_allowed             = ipv4_allowed;
            result_.ipv6_allowed             = ipv6_allowed;
            return(result_);
        }
Exemplo n.º 3
0
        public Proxy_Network ToProxy()
        {
            Proxy_Network result_ = new Proxy_Network();

            result_.uuid               = (uuid != null) ? uuid : "";
            result_.name_label         = (name_label != null) ? name_label : "";
            result_.name_description   = (name_description != null) ? name_description : "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_network_operations(current_operations);
            result_.VIFs               = (VIFs != null) ? Helper.RefListToStringArray(VIFs) : new string[] {};
            result_.PIFs               = (PIFs != null) ? Helper.RefListToStringArray(PIFs) : new string[] {};
            result_.MTU                  = MTU.ToString();
            result_.other_config         = Maps.convert_to_proxy_string_string(other_config);
            result_.bridge               = (bridge != null) ? bridge : "";
            result_.blobs                = Maps.convert_to_proxy_string_XenRefBlob(blobs);
            result_.tags                 = tags;
            result_.default_locking_mode = network_default_locking_mode_helper.ToString(default_locking_mode);
            return(result_);
        }
Exemplo n.º 4
0
        public Proxy_Network ToProxy()
        {
            Proxy_Network result_ = new Proxy_Network();

            result_.uuid               = uuid ?? "";
            result_.name_label         = name_label ?? "";
            result_.name_description   = name_description ?? "";
            result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {};
            result_.current_operations = Maps.convert_to_proxy_string_network_operations(current_operations);
            result_.VIFs               = (VIFs != null) ? Helper.RefListToStringArray(VIFs) : new string[] {};
            result_.PIFs               = (PIFs != null) ? Helper.RefListToStringArray(PIFs) : new string[] {};
            result_.MTU                  = MTU.ToString();
            result_.other_config         = Maps.convert_to_proxy_string_string(other_config);
            result_.bridge               = bridge ?? "";
            result_.managed              = managed;
            result_.blobs                = Maps.convert_to_proxy_string_XenRefBlob(blobs);
            result_.tags                 = tags;
            result_.default_locking_mode = network_default_locking_mode_helper.ToString(default_locking_mode);
            result_.assigned_ips         = Maps.convert_to_proxy_XenRefVIF_string(assigned_ips);
            return(result_);
        }