예제 #1
0
파일: VTPM.cs 프로젝트: wuzhiwyyx/xenadmin
 /// <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()));
 }
예제 #2
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 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()));
 }
예제 #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()));
 }
예제 #4
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 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()));
 }
예제 #5
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 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()));
 }
예제 #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()));
 }
예제 #7
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 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()));
 }
예제 #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()));
 }
예제 #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()));
 }
예제 #10
0
파일: SM.cs 프로젝트: 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()));
 }
예제 #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()));
 }
예제 #12
0
파일: SM.cs 프로젝트: 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()));
 }
예제 #13
0
파일: SM.cs 프로젝트: 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()));
 }
예제 #14
0
파일: SM.cs 프로젝트: 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()));
 }
예제 #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()));
 }
예제 #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()));
 }
예제 #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()));
 }
예제 #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()));
 }
예제 #19
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 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()));
 }
예제 #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()));
 }
예제 #21
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 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()));
 }
예제 #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()));
 }
예제 #23
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 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()));
 }
예제 #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()));
 }
예제 #25
0
파일: VGPU.cs 프로젝트: ryu2048/xenadmin
 public static List <XenRef <VGPU> > get_all(Session session)
 {
     return(XenRef <VGPU> .Create(session.proxy.vgpu_get_all(session.uuid).parse()));
 }
예제 #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()));
 }
예제 #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()));
 }
예제 #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()));
 }
예제 #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()));
 }
예제 #30
0
파일: VTPM.cs 프로젝트: wuzhiwyyx/xenadmin
 /// <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()));
 }