예제 #1
0
 /// <summary>
 /// Return a list of all the host_crashdumps known to the system.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <Host_crashdump> > get_all(Session session)
 {
     return(XenRef <Host_crashdump> .Create(session.proxy.host_crashdump_get_all(session.uuid).parse()));
 }
예제 #2
0
 /// <summary>
 /// Introduce an SDN controller to the pool.
 /// First published in XenServer 7.2.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_protocol">Protocol to connect with the controller.</param>
 /// <param name="_address">IP address of the controller.</param>
 /// <param name="_port">TCP port of the controller.</param>
 public static XenRef <Task> async_introduce(Session session, sdn_controller_protocol _protocol, string _address, long _port)
 {
     return(XenRef <Task> .Create(session.proxy.async_sdn_controller_introduce(session.uuid, sdn_controller_protocol_helper.ToString(_protocol), (_address != null) ? _address : "", _port.ToString()).parse()));
 }
예제 #3
0
 /// <summary>
 /// Return a list of all the SDN_controllers known to the system.
 /// First published in XenServer 7.2.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <SDN_controller> > get_all(Session session)
 {
     return(XenRef <SDN_controller> .Create(session.proxy.sdn_controller_get_all(session.uuid).parse()));
 }
예제 #4
0
파일: Blob.cs 프로젝트: hl10502/XenCenter
 /// <summary>
 /// Create a placeholder for a binary blob
 /// First published in XenServer 5.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_mime_type">The mime-type of the blob. Defaults to 'application/octet-stream' if the empty string is supplied</param>
 /// <param name="_public">True if the blob should be publicly available First published in XenServer 6.1.</param>
 public static XenRef <Blob> create(Session session, string _mime_type, bool _public)
 {
     return(XenRef <Blob> .Create(session.proxy.blob_create(session.uuid, (_mime_type != null) ? _mime_type : "", _public).parse()));
 }
예제 #5
0
파일: Blob.cs 프로젝트: hl10502/XenCenter
 /// <summary>
 /// Get all the blob Records at once, in a single XML RPC call
 /// First published in XenServer 5.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static Dictionary <XenRef <Blob>, Blob> get_all_records(Session session)
 {
     return(XenRef <Blob> .Create <Proxy_Blob>(session.proxy.blob_get_all_records(session.uuid).parse()));
 }
예제 #6
0
파일: Console.cs 프로젝트: onier/xenadmin
 /// <summary>
 /// Return a list of all the consoles known to the system.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <Console> > get_all(Session session)
 {
     return(XenRef <Console> .Create(session.proxy.console_get_all(session.uuid).parse()));
 }
예제 #7
0
파일: Blob.cs 프로젝트: hl10502/XenCenter
 /// <summary>
 /// Get a reference to the blob instance with the specified UUID.
 /// First published in XenServer 5.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_uuid">UUID of object to return</param>
 public static XenRef <Blob> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <Blob> .Create(session.proxy.blob_get_by_uuid(session.uuid, (_uuid != null) ? _uuid : "").parse()));
 }
예제 #8
0
 /// <summary>
 /// Start all VMs in the appliance
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vm_appliance">The opaque_ref of the given vm_appliance</param>
 /// <param name="_paused">Instantiate all VMs belonging to this appliance in paused state if set to true.</param>
 public static XenRef <Task> async_start(Session session, string _vm_appliance, bool _paused)
 {
     return(XenRef <Task> .Create(session.proxy.async_vm_appliance_start(session.uuid, _vm_appliance ?? "", _paused).parse()));
 }
예제 #9
0
 /// <summary>
 /// For each VM in the appliance, try to shut it down cleanly. If this fails, perform a hard shutdown of the VM.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vm_appliance">The opaque_ref of the given vm_appliance</param>
 public static XenRef <Task> async_shutdown(Session session, string _vm_appliance)
 {
     return(XenRef <Task> .Create(session.proxy.async_vm_appliance_shutdown(session.uuid, _vm_appliance ?? "").parse()));
 }
예제 #10
0
 /// <summary>
 /// Get all the VM_appliance instances with the given label.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_label">label of object to return</param>
 public static List <XenRef <VM_appliance> > get_by_name_label(Session session, string _label)
 {
     return(XenRef <VM_appliance> .Create(session.proxy.vm_appliance_get_by_name_label(session.uuid, _label ?? "").parse()));
 }
예제 #11
0
 /// <summary>
 /// Get the VMs field of the given VM_appliance.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vm_appliance">The opaque_ref of the given vm_appliance</param>
 public static List <XenRef <VM> > get_VMs(Session session, string _vm_appliance)
 {
     return(XenRef <VM> .Create(session.proxy.vm_appliance_get_vms(session.uuid, _vm_appliance ?? "").parse()));
 }
예제 #12
0
 /// <summary>
 /// Create a new VM_appliance instance, and return its handle.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_record">All constructor arguments</param>
 public static XenRef <VM_appliance> create(Session session, VM_appliance _record)
 {
     return(XenRef <VM_appliance> .Create(session.proxy.vm_appliance_create(session.uuid, _record.ToProxy()).parse()));
 }
예제 #13
0
 /// <summary>
 /// Get a reference to the VM_appliance 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 <VM_appliance> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <VM_appliance> .Create(session.proxy.vm_appliance_get_by_uuid(session.uuid, _uuid ?? "").parse()));
 }
예제 #14
0
 /// <summary>
 /// Get all the host_crashdump 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_crashdump>, Host_crashdump> get_all_records(Session session)
 {
     return(XenRef <Host_crashdump> .Create <Proxy_Host_crashdump>(session.proxy.host_crashdump_get_all_records(session.uuid).parse()));
 }
예제 #15
0
파일: Console.cs 프로젝트: onier/xenadmin
 /// <summary>
 /// Destroy the specified console instance.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_console">The opaque_ref of the given console</param>
 public static XenRef <Task> async_destroy(Session session, string _console)
 {
     return(XenRef <Task> .Create(session.proxy.async_console_destroy(session.uuid, _console ?? "").parse()));
 }
예제 #16
0
 /// <summary>
 /// Assert whether all SRs required to recover this VM appliance are available.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vm_appliance">The opaque_ref of the given vm_appliance</param>
 /// <param name="_session_to">The session to which the VM appliance is to be recovered.</param>
 public static XenRef <Task> async_assert_can_be_recovered(Session session, string _vm_appliance, string _session_to)
 {
     return(XenRef <Task> .Create(session.proxy.async_vm_appliance_assert_can_be_recovered(session.uuid, _vm_appliance ?? "", _session_to ?? "").parse()));
 }
예제 #17
0
파일: Console.cs 프로젝트: onier/xenadmin
 /// <summary>
 /// Get the VM field of the given console.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_console">The opaque_ref of the given console</param>
 public static XenRef <VM> get_VM(Session session, string _console)
 {
     return(XenRef <VM> .Create(session.proxy.console_get_vm(session.uuid, _console ?? "").parse()));
 }
예제 #18
0
 /// <summary>
 /// Get the list of SRs required by the VM appliance to recover.
 /// First published in XenServer 6.5.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vm_appliance">The opaque_ref of the given vm_appliance</param>
 /// <param name="_session_to">The session to which the list of SRs have to be recovered .</param>
 public static XenRef <Task> async_get_SRs_required_for_recovery(Session session, string _vm_appliance, string _session_to)
 {
     return(XenRef <Task> .Create(session.proxy.async_vm_appliance_get_srs_required_for_recovery(session.uuid, _vm_appliance ?? "", _session_to ?? "").parse()));
 }
예제 #19
0
파일: Console.cs 프로젝트: onier/xenadmin
 /// <summary>
 /// Get all the console 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 <Console>, Console> get_all_records(Session session)
 {
     return(XenRef <Console> .Create <Proxy_Console>(session.proxy.console_get_all_records(session.uuid).parse()));
 }
예제 #20
0
 /// <summary>
 /// Recover the VM appliance
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_vm_appliance">The opaque_ref of the given vm_appliance</param>
 /// <param name="_session_to">The session to which the VM appliance is to be recovered.</param>
 /// <param name="_force">Whether the VMs should replace newer versions of themselves.</param>
 public static XenRef <Task> async_recover(Session session, string _vm_appliance, string _session_to, bool _force)
 {
     return(XenRef <Task> .Create(session.proxy.async_vm_appliance_recover(session.uuid, _vm_appliance ?? "", _session_to ?? "", _force).parse()));
 }
예제 #21
0
파일: Blob.cs 프로젝트: hl10502/XenCenter
 /// <summary>
 /// Get all the blob instances with the given label.
 /// First published in XenServer 5.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_label">label of object to return</param>
 public static List <XenRef <Blob> > get_by_name_label(Session session, string _label)
 {
     return(XenRef <Blob> .Create(session.proxy.blob_get_by_name_label(session.uuid, (_label != null) ? _label : "").parse()));
 }
예제 #22
0
 /// <summary>
 /// Return a list of all the VM_appliances known to the system.
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <VM_appliance> > get_all(Session session)
 {
     return(XenRef <VM_appliance> .Create(session.proxy.vm_appliance_get_all(session.uuid).parse()));
 }
예제 #23
0
파일: Blob.cs 프로젝트: hl10502/XenCenter
 /// <summary>
 /// Return a list of all the blobs known to the system.
 /// First published in XenServer 5.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static List <XenRef <Blob> > get_all(Session session)
 {
     return(XenRef <Blob> .Create(session.proxy.blob_get_all(session.uuid).parse()));
 }
예제 #24
0
 /// <summary>
 /// Get all the VM_appliance Records at once, in a single XML RPC call
 /// First published in XenServer 6.0.
 /// </summary>
 /// <param name="session">The session</param>
 public static Dictionary <XenRef <VM_appliance>, VM_appliance> get_all_records(Session session)
 {
     return(XenRef <VM_appliance> .Create <Proxy_VM_appliance>(session.proxy.vm_appliance_get_all_records(session.uuid).parse()));
 }
예제 #25
0
 /// <summary>
 /// Get a reference to the SDN_controller instance with the specified UUID.
 /// First published in XenServer 7.2.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_uuid">UUID of object to return</param>
 public static XenRef <SDN_controller> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <SDN_controller> .Create(session.proxy.sdn_controller_get_by_uuid(session.uuid, (_uuid != null) ? _uuid : "").parse()));
 }
예제 #26
0
파일: Console.cs 프로젝트: onier/xenadmin
 /// <summary>
 /// Get a reference to the console 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 <Console> get_by_uuid(Session session, string _uuid)
 {
     return(XenRef <Console> .Create(session.proxy.console_get_by_uuid(session.uuid, _uuid ?? "").parse()));
 }
예제 #27
0
 /// <summary>
 /// Remove the OVS manager of the pool and destroy the db record.
 /// First published in XenServer 7.2.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_sdn_controller">The opaque_ref of the given sdn_controller</param>
 public static XenRef <Task> async_forget(Session session, string _sdn_controller)
 {
     return(XenRef <Task> .Create(session.proxy.async_sdn_controller_forget(session.uuid, (_sdn_controller != null) ? _sdn_controller : "").parse()));
 }
예제 #28
0
파일: Console.cs 프로젝트: onier/xenadmin
 /// <summary>
 /// Create a new console instance, and return its handle.
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_record">All constructor arguments</param>
 public static XenRef <Task> async_create(Session session, Console _record)
 {
     return(XenRef <Task> .Create(session.proxy.async_console_create(session.uuid, _record.ToProxy()).parse()));
 }
예제 #29
0
 /// <summary>
 /// Get all the SDN_controller Records at once, in a single XML RPC call
 /// First published in XenServer 7.2.
 /// </summary>
 /// <param name="session">The session</param>
 public static Dictionary <XenRef <SDN_controller>, SDN_controller> get_all_records(Session session)
 {
     return(XenRef <SDN_controller> .Create <Proxy_SDN_controller>(session.proxy.sdn_controller_get_all_records(session.uuid).parse()));
 }
예제 #30
0
 /// <summary>
 /// Upload the specified host crash dump to a specified URL
 /// First published in XenServer 4.0.
 /// </summary>
 /// <param name="session">The session</param>
 /// <param name="_host_crashdump">The opaque_ref of the given host_crashdump</param>
 /// <param name="_url">The URL to upload to</param>
 /// <param name="_options">Extra configuration operations</param>
 public static XenRef <Task> async_upload(Session session, string _host_crashdump, string _url, Dictionary <string, string> _options)
 {
     return(XenRef <Task> .Create(session.proxy.async_host_crashdump_upload(session.uuid, _host_crashdump ?? "", _url ?? "", Maps.convert_to_proxy_string_string(_options)).parse()));
 }