Ejemplo n.º 1
0
 /// <summary>
 /// Get the backend field of the given VTPM.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vtpm">The opaque_ref of the given vtpm</param>
 public static XenRef <VM> get_backend(Session session, string _vtpm)
 {
     return(XenRef <VM> .Create(session.proxy.vtpm_get_backend(session.uuid, _vtpm ?? "").parse()));
 }
Ejemplo n.º 2
0
 public static Dictionary <XenRef <VGPU>, VGPU> get_all_records(Session session)
 {
     return(XenRef <VGPU> .Create <Proxy_VGPU>(session.proxy.vgpu_get_all_records(session.uuid).parse()));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Get the introduced_SRs field of the given DR_task.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_dr_task">The opaque_ref of the given dr_task</param>
 public static List <XenRef <SR> > get_introduced_SRs(Session session, string _dr_task)
 {
     return(XenRef <SR> .Create(session.proxy.dr_task_get_introduced_srs(session.uuid, _dr_task ?? "").parse()));
 }
Ejemplo n.º 4
0
 public static XenRef <PGPU> get_resident_on(Session session, string _vgpu)
 {
     return(XenRef <PGPU> .Create(session.proxy.vgpu_get_resident_on(session.uuid, (_vgpu != null) ? _vgpu : "").parse()));
 }
Ejemplo n.º 5
0
 public static XenRef <Task> async_destroy(Session session, string _self)
 {
     return(XenRef <Task> .Create(session.proxy.async_vgpu_destroy(session.uuid, (_self != null) ? _self : "").parse()));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Get the enabled_on_GPU_groups field of the given VGPU_type.
 /// First published in XenServer 6.2 SP1.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vgpu_type">The opaque_ref of the given vgpu_type</param>
 public static List <XenRef <GPU_group> > get_enabled_on_GPU_groups(Session session, string _vgpu_type)
 {
     return(XenRef <GPU_group> .Create(session.proxy.vgpu_type_get_enabled_on_gpu_groups(session.uuid, _vgpu_type ?? "").parse()));
 }
Ejemplo n.º 7
0
 public static XenRef <GPU_group> get_GPU_group(Session session, string _vgpu)
 {
     return(XenRef <GPU_group> .Create(session.proxy.vgpu_get_gpu_group(session.uuid, (_vgpu != null) ? _vgpu : "").parse()));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Get the site field of the given PVS_proxy.
 /// Experimental. First published in XenServer 7.1.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_pvs_proxy">The opaque_ref of the given pvs_proxy</param>
 public static XenRef <PVS_site> get_site(Session session, string _pvs_proxy)
 {
     return(XenRef <PVS_site> .Create(session.proxy.pvs_proxy_get_site(session.uuid, (_pvs_proxy != null) ? _pvs_proxy : "").parse()));
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Get the VIF field of the given PVS_proxy.
 /// Experimental. First published in XenServer 7.1.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_pvs_proxy">The opaque_ref of the given pvs_proxy</param>
 public static XenRef <VIF> get_VIF(Session session, string _pvs_proxy)
 {
     return(XenRef <VIF> .Create(session.proxy.pvs_proxy_get_vif(session.uuid, (_pvs_proxy != null) ? _pvs_proxy : "").parse()));
 }
Ejemplo n.º 10
0
Archivo: SM.cs Proyecto: onier/xenadmin
 /// <summary>
 /// Get all the SM Records at once, in a single XML RPC call
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static Dictionary <XenRef <SM>, SM> get_all_records(Session session)
 {
     return(XenRef <SM> .Create <Proxy_SM>(session.proxy.sm_get_all_records(session.uuid).parse()));
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Get a reference to the PVS_proxy instance with the specified UUID.
 /// Experimental. First published in XenServer 7.1.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_uuid">UUID of object to return</param>
 public static XenRef <PVS_proxy> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <PVS_proxy> .Create(session.proxy.pvs_proxy_get_by_uuid(session.uuid, (_uuid != null) ? _uuid : "").parse()));
 }
Ejemplo n.º 12
0
Archivo: SM.cs Proyecto: onier/xenadmin
 /// <summary>
 /// Return a list of all the SMs known to the system.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <SM> > get_all(Session session)
 {
     return(XenRef <SM> .Create(session.proxy.sm_get_all(session.uuid).parse()));
 }
Ejemplo n.º 13
0
Archivo: SM.cs Proyecto: onier/xenadmin
 /// <summary>
 /// Get all the SM instances with the given label.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_label">label of object to return</param>
 public static List <XenRef <SM> > get_by_name_label(Session session, string _label)
 {
     return(XenRef <SM> .Create(session.proxy.sm_get_by_name_label(session.uuid, _label ?? "").parse()));
 }
Ejemplo n.º 14
0
Archivo: SM.cs Proyecto: onier/xenadmin
 /// <summary>
 /// Get a reference to the SM instance with the specified UUID.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_uuid">UUID of object to return</param>
 public static XenRef <SM> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <SM> .Create(session.proxy.sm_get_by_uuid(session.uuid, _uuid ?? "").parse()));
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Get a reference to the VGPU_type instance with the specified UUID.
 /// First published in XenServer 6.2 SP1 Tech-Preview.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_uuid">UUID of object to return</param>
 public static XenRef <VGPU_type> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <VGPU_type> .Create(session.proxy.vgpu_type_get_by_uuid(session.uuid, _uuid ?? "").parse()));
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Configure a VM/VIF to use a PVS proxy
 /// Experimental. First published in XenServer 7.1.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_site">PVS site that we proxy for</param>
 /// <param name="_vif">VIF for the VM that needs to be proxied</param>
 public static XenRef <Task> async_create(Session session, string _site, string _vif)
 {
     return(XenRef <Task> .Create(session.proxy.async_pvs_proxy_create(session.uuid, (_site != null) ? _site : "", (_vif != null) ? _vif : "").parse()));
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Get the VGPUs field of the given VGPU_type.
 /// First published in XenServer 6.2 SP1 Tech-Preview.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vgpu_type">The opaque_ref of the given vgpu_type</param>
 public static List <XenRef <VGPU> > get_VGPUs(Session session, string _vgpu_type)
 {
     return(XenRef <VGPU> .Create(session.proxy.vgpu_type_get_vgpus(session.uuid, _vgpu_type ?? "").parse()));
 }
Ejemplo n.º 18
0
 /// <summary>
 /// remove (or switch off) a PVS proxy for this VM
 /// Experimental. First published in XenServer 7.1.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_pvs_proxy">The opaque_ref of the given pvs_proxy</param>
 public static XenRef <Task> async_destroy(Session session, string _pvs_proxy)
 {
     return(XenRef <Task> .Create(session.proxy.async_pvs_proxy_destroy(session.uuid, (_pvs_proxy != null) ? _pvs_proxy : "").parse()));
 }
Ejemplo n.º 19
0
 public static XenRef <VGPU> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <VGPU> .Create(session.proxy.vgpu_get_by_uuid(session.uuid, (_uuid != null) ? _uuid : "").parse()));
 }
Ejemplo n.º 20
0
 /// <summary>
 /// Return a list of all the PVS_proxys known to the system.
 /// Experimental. First published in XenServer 7.1.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <PVS_proxy> > get_all(Session session)
 {
     return(XenRef <PVS_proxy> .Create(session.proxy.pvs_proxy_get_all(session.uuid).parse()));
 }
Ejemplo n.º 21
0
 public static XenRef <VGPU_type> get_type(Session session, string _vgpu)
 {
     return(XenRef <VGPU_type> .Create(session.proxy.vgpu_get_type(session.uuid, (_vgpu != null) ? _vgpu : "").parse()));
 }
Ejemplo n.º 22
0
 /// <summary>
 /// Get all the PVS_proxy Records at once, in a single XML RPC call
 /// </summary>
 /// <param name="session">The session</param>
 public static Dictionary <XenRef <PVS_proxy>, PVS_proxy> get_all_records(Session session)
 {
     return(XenRef <PVS_proxy> .Create <Proxy_PVS_proxy>(session.proxy.pvs_proxy_get_all_records(session.uuid).parse()));
 }
Ejemplo n.º 23
0
 public static XenRef <Task> async_create(Session session, string _vm, string _gpu_group, string _device, Dictionary <string, string> _other_config, string _type)
 {
     return(XenRef <Task> .Create(session.proxy.async_vgpu_create(session.uuid, (_vm != null) ? _vm : "", (_gpu_group != null) ? _gpu_group : "", (_device != null) ? _device : "", Maps.convert_to_proxy_string_string(_other_config), (_type != null) ? _type : "").parse()));
 }
Ejemplo n.º 24
0
 /// <summary>
 /// Get a reference to the host_metrics instance with the specified UUID.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_uuid">UUID of object to return</param>
 public static XenRef <Host_metrics> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <Host_metrics> .Create(session.proxy.host_metrics_get_by_uuid(session.uuid, (_uuid != null) ? _uuid : "").parse()));
 }
Ejemplo n.º 25
0
 public static List <XenRef <VGPU> > get_all(Session session)
 {
     return(XenRef <VGPU> .Create(session.proxy.vgpu_get_all(session.uuid).parse()));
 }
Ejemplo n.º 26
0
 /// <summary>
 /// Return a list of all the host_metrics instances known to the system.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <Host_metrics> > get_all(Session session)
 {
     return(XenRef <Host_metrics> .Create(session.proxy.host_metrics_get_all(session.uuid).parse()));
 }
Ejemplo n.º 27
0
 /// <summary>
 /// Get a reference to the DR_task instance with the specified UUID.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_uuid">UUID of object to return</param>
 public static XenRef <DR_task> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <DR_task> .Create(session.proxy.dr_task_get_by_uuid(session.uuid, _uuid ?? "").parse()));
 }
Ejemplo n.º 28
0
 /// <summary>
 /// Get all the host_metrics Records at once, in a single XML RPC call
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static Dictionary <XenRef <Host_metrics>, Host_metrics> get_all_records(Session session)
 {
     return(XenRef <Host_metrics> .Create <Proxy_Host_metrics>(session.proxy.host_metrics_get_all_records(session.uuid).parse()));
 }
Ejemplo n.º 29
0
 /// <summary>
 /// Create a disaster recovery task which will query the supplied list of devices
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_type">The SR driver type of the SRs to introduce</param>
 /// <param name="_device_config">The device configuration of the SRs to introduce</param>
 /// <param name="_whitelist">The devices to use for disaster recovery</param>
 public static XenRef <Task> async_create(Session session, string _type, Dictionary <string, string> _device_config, string[] _whitelist)
 {
     return(XenRef <Task> .Create(session.proxy.async_dr_task_create(session.uuid, _type ?? "", Maps.convert_to_proxy_string_string(_device_config), _whitelist).parse()));
 }
Ejemplo n.º 30
0
 /// <summary>
 /// Destroy the specified VTPM instance.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vtpm">The opaque_ref of the given vtpm</param>
 public static XenRef <Task> async_destroy(Session session, string _vtpm)
 {
     return(XenRef <Task> .Create(session.proxy.async_vtpm_destroy(session.uuid, _vtpm ?? "").parse()));
 }