Example #1
0
 public static XenRef <Host> get_host(Session session, string _pif)
 {
     return(XenRef <Host> .Create(session.proxy.pif_get_host(session.uuid, (_pif != null) ? _pif : "").parse()));
 }
Example #2
0
 public static XenRef <Network> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <Network> .Create(session.proxy.network_get_by_uuid(session.uuid, (_uuid != null) ? _uuid : "").parse()));
 }
Example #3
0
 public static XenRef <Task> async_create(Session session, Network _record)
 {
     return(XenRef <Task> .Create(session.proxy.async_network_create(session.uuid, _record.ToProxy()).parse()));
 }
Example #4
0
 public static XenRef <Blob> create_new_blob(Session session, string _network, string _name, string _mime_type, bool _public)
 {
     return(XenRef <Blob> .Create(session.proxy.network_create_new_blob(session.uuid, (_network != null) ? _network : "", (_name != null) ? _name : "", (_mime_type != null) ? _mime_type : "", _public).parse()));
 }
Example #5
0
 public static Dictionary <XenRef <Network>, Network> get_all_records(Session session)
 {
     return(XenRef <Network> .Create <Proxy_Network>(session.proxy.network_get_all_records(session.uuid).parse()));
 }
Example #6
0
 public static Dictionary <XenRef <Role>, Role> get_all_records(Session session)
 {
     return(XenRef <Role> .Create <Proxy_Role>(session.proxy.role_get_all_records(session.uuid).parse()));
 }
Example #7
0
 public static List <XenRef <Role> > get_by_permission_name_label(Session session, string _label)
 {
     return(XenRef <Role> .Create(session.proxy.role_get_by_permission_name_label(session.uuid, (_label != null) ? _label : "").parse()));
 }
Example #8
0
        internal void UpdateFromProxy(Proxy_PIF proxy)
        {
            this.uuid    = (proxy.uuid == null) ? null : proxy.uuid;
            this.device  = (proxy.device == null) ? null : proxy.device;
            this.network = (proxy.network == null) ? null : XenRef <Network> .Create(proxy.network);

            this.host = (proxy.host == null) ? null : XenRef <Host> .Create(proxy.host);

            this.MAC     = (proxy.MAC == null) ? null : proxy.MAC;
            this.MTU     = (proxy.MTU == null) ? 0L : long.Parse(proxy.MTU);
            this.VLAN    = (proxy.VLAN == null) ? 0L : long.Parse(proxy.VLAN);
            this.metrics = (proxy.metrics == null) ? null : XenRef <PIF_metrics> .Create(proxy.metrics);

            this.physical              = proxy.physical;
            this.currently_attached    = proxy.currently_attached;
            this.ip_configuration_mode = (proxy.ip_configuration_mode == null) ? WinAPI.ip_configuration_mode.None : ((WinAPI.ip_configuration_mode)Helper.EnumParseDefault(typeof(WinAPI.ip_configuration_mode), proxy.ip_configuration_mode));
            this.IP            = (proxy.IP == null) ? null : proxy.IP;
            this.netmask       = (proxy.netmask == null) ? null : proxy.netmask;
            this.gateway       = (proxy.gateway == null) ? null : proxy.gateway;
            this.DNS           = (proxy.DNS == null) ? null : proxy.DNS;
            this.bond_slave_of = (proxy.bond_slave_of == null) ? null : XenRef <Bond> .Create(proxy.bond_slave_of);

            this.bond_master_of = (proxy.bond_master_of == null) ? null : XenRef <Bond> .Create(proxy.bond_master_of);

            this.VLAN_master_of = (proxy.VLAN_master_of == null) ? null : XenRef <WinAPI.VLAN> .Create(proxy.VLAN_master_of);

            this.VLAN_slave_of = (proxy.VLAN_slave_of == null) ? null : XenRef <WinAPI.VLAN> .Create(proxy.VLAN_slave_of);

            this.management           = proxy.management;
            this.other_config         = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
            this.disallow_unplug      = proxy.disallow_unplug;
            this.tunnel_access_PIF_of = (proxy.tunnel_access_PIF_of == null) ? null : XenRef <Tunnel> .Create(proxy.tunnel_access_PIF_of);

            this.tunnel_transport_PIF_of = (proxy.tunnel_transport_PIF_of == null) ? null : XenRef <Tunnel> .Create(proxy.tunnel_transport_PIF_of);

            this.ipv6_configuration_mode = (proxy.ipv6_configuration_mode == null) ? WinAPI.ipv6_configuration_mode.None : ((WinAPI.ipv6_configuration_mode)Helper.EnumParseDefault(typeof(WinAPI.ipv6_configuration_mode), proxy.ipv6_configuration_mode));
            this.IPv6                 = (proxy.IPv6 == null) ? new string[0] : proxy.IPv6;
            this.ipv6_gateway         = (proxy.ipv6_gateway == null) ? null : proxy.ipv6_gateway;
            this.primary_address_type = (proxy.primary_address_type == null) ? WinAPI.primary_address_type.IPv4 : ((WinAPI.primary_address_type)Helper.EnumParseDefault(typeof(WinAPI.primary_address_type), proxy.primary_address_type));
        }
Example #9
0
File: VBD.cs Project: hl10502/WCM
 public static XenRef <Task> async_assert_attachable(Session session, string _vbd)
 {
     return(XenRef <Task> .Create(session.proxy.async_vbd_assert_attachable(session.uuid, (_vbd != null) ? _vbd : "").parse()));
 }
Example #10
0
 public static List <XenRef <WinAPI.VLAN> > get_VLAN_slave_of(Session session, string _pif)
 {
     return(XenRef <WinAPI.VLAN> .Create(session.proxy.pif_get_vlan_slave_of(session.uuid, (_pif != null) ? _pif : "").parse()));
 }
Example #11
0
 public static XenRef <PIF> introduce(Session session, string _host, string _mac, string _device)
 {
     return(XenRef <PIF> .Create(session.proxy.pif_introduce(session.uuid, (_host != null) ? _host : "", (_mac != null) ? _mac : "", (_device != null) ? _device : "").parse()));
 }
Example #12
0
 public static List <XenRef <Tunnel> > get_tunnel_transport_PIF_of(Session session, string _pif)
 {
     return(XenRef <Tunnel> .Create(session.proxy.pif_get_tunnel_transport_pif_of(session.uuid, (_pif != null) ? _pif : "").parse()));
 }
Example #13
0
 public static XenRef <Network> get_network(Session session, string _pif)
 {
     return(XenRef <Network> .Create(session.proxy.pif_get_network(session.uuid, (_pif != null) ? _pif : "").parse()));
 }
Example #14
0
 public static XenRef <PIF_metrics> get_metrics(Session session, string _pif)
 {
     return(XenRef <PIF_metrics> .Create(session.proxy.pif_get_metrics(session.uuid, (_pif != null) ? _pif : "").parse()));
 }
Example #15
0
 public static List <XenRef <Role> > get_subroles(Session session, string _role)
 {
     return(XenRef <Role> .Create(session.proxy.role_get_subroles(session.uuid, (_role != null) ? _role : "").parse()));
 }
Example #16
0
File: VBD.cs Project: hl10502/WCM
 public static XenRef <Task> async_insert(Session session, string _vbd, string _vdi)
 {
     return(XenRef <Task> .Create(session.proxy.async_vbd_insert(session.uuid, (_vbd != null) ? _vbd : "", (_vdi != null) ? _vdi : "").parse()));
 }
Example #17
0
 public static List <XenRef <Role> > get_all(Session session)
 {
     return(XenRef <Role> .Create(session.proxy.role_get_all(session.uuid).parse()));
 }
Example #18
0
File: VBD.cs Project: hl10502/WCM
 public static XenRef <Task> async_unplug_force(Session session, string _vbd)
 {
     return(XenRef <Task> .Create(session.proxy.async_vbd_unplug_force(session.uuid, (_vbd != null) ? _vbd : "").parse()));
 }
Example #19
0
 public static List <XenRef <Role> > get_by_permission(Session session, string _permission)
 {
     return(XenRef <Role> .Create(session.proxy.role_get_by_permission(session.uuid, (_permission != null) ? _permission : "").parse()));
 }
Example #20
0
File: VBD.cs Project: hl10502/WCM
 public static XenRef <VBD> create(Session session, VBD _record)
 {
     return(XenRef <VBD> .Create(session.proxy.vbd_create(session.uuid, _record.ToProxy()).parse()));
 }
Example #21
0
 public static List <XenRef <Role> > get_permissions(Session session, string _self)
 {
     return(XenRef <Role> .Create(session.proxy.role_get_permissions(session.uuid, (_self != null) ? _self : "").parse()));
 }
Example #22
0
File: VBD.cs Project: hl10502/WCM
 public static List <XenRef <VBD> > get_all(Session session)
 {
     return(XenRef <VBD> .Create(session.proxy.vbd_get_all(session.uuid).parse()));
 }
Example #23
0
 public static List <XenRef <Network> > get_all(Session session)
 {
     return(XenRef <Network> .Create(session.proxy.network_get_all(session.uuid).parse()));
 }
Example #24
0
File: VBD.cs Project: hl10502/WCM
 public static Dictionary <XenRef <VBD>, VBD> get_all_records(Session session)
 {
     return(XenRef <VBD> .Create <Proxy_VBD>(session.proxy.vbd_get_all_records(session.uuid).parse()));
 }
Example #25
0
 public static List <XenRef <Network> > get_by_name_label(Session session, string _label)
 {
     return(XenRef <Network> .Create(session.proxy.network_get_by_name_label(session.uuid, (_label != null) ? _label : "").parse()));
 }
Example #26
0
File: VBD.cs Project: hl10502/WCM
 public static XenRef <VBD_metrics> get_metrics(Session session, string _vbd)
 {
     return(XenRef <VBD_metrics> .Create(session.proxy.vbd_get_metrics(session.uuid, (_vbd != null) ? _vbd : "").parse()));
 }
Example #27
0
 public static List <XenRef <VIF> > get_VIFs(Session session, string _network)
 {
     return(XenRef <VIF> .Create(session.proxy.network_get_vifs(session.uuid, (_network != null) ? _network : "").parse()));
 }
Example #28
0
File: VBD.cs Project: hl10502/WCM
 public static XenRef <WinAPI.VM> get_VM(Session session, string _vbd)
 {
     return(XenRef <WinAPI.VM> .Create(session.proxy.vbd_get_vm(session.uuid, (_vbd != null) ? _vbd : "").parse()));
 }
Example #29
0
 public static XenRef <Task> async_create_new_blob(Session session, string _network, string _name, string _mime_type)
 {
     return(XenRef <Task> .Create(session.proxy.async_network_create_new_blob(session.uuid, (_network != null) ? _network : "", (_name != null) ? _name : "", (_mime_type != null) ? _mime_type : "").parse()));
 }
Example #30
0
 public static XenRef <Bond> get_bond_slave_of(Session session, string _pif)
 {
     return(XenRef <Bond> .Create(session.proxy.pif_get_bond_slave_of(session.uuid, (_pif != null) ? _pif : "").parse()));
 }