wsp-10329 Adding hyper-v replica to HyperV Provider. Enterprise Part.

This commit is contained in:
Alexander Trofimov 2015-04-16 13:17:34 +03:00
parent 5af4c5a932
commit c328cf72bd
4 changed files with 138 additions and 38 deletions

View file

@ -11,6 +11,12 @@
//
// This source code was auto-generated by wsdl, Version=2.0.50727.42.
//
using WebsitePanel.Providers;
using WebsitePanel.Providers.Common;
using WebsitePanel.Providers.ResultObjects;
using WebsitePanel.Providers.Virtualization;
namespace WebsitePanel.EnterpriseServer {
using System.Xml.Serialization;
using System.Web.Services;
@ -18,10 +24,7 @@ namespace WebsitePanel.EnterpriseServer {
using System.Web.Services.Protocols;
using System;
using System.Diagnostics;
using WebsitePanel.Providers;
using WebsitePanel.Providers.Common;
using WebsitePanel.Providers.Virtualization;
using WebsitePanel.Providers.ResultObjects;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
@ -141,6 +144,8 @@ namespace WebsitePanel.EnterpriseServer {
private System.Threading.SendOrPostCallback SendVirtualMachineSummaryLetterOperationCompleted;
private System.Threading.SendOrPostCallback GetCertificatesOperationCompleted;
/// <remarks/>
public esVirtualizationServer2012() {
this.Url = "http://127.0.0.1:9012/esVirtualizationServer2012.asmx";
@ -311,6 +316,9 @@ namespace WebsitePanel.EnterpriseServer {
/// <remarks/>
public event SendVirtualMachineSummaryLetterCompletedEventHandler SendVirtualMachineSummaryLetterCompleted;
/// <remarks/>
public event GetCertificatesCompletedEventHandler GetCertificatesCompleted;
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetVirtualMachines", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public VirtualMachineMetaItemsPaged GetVirtualMachines(int packageId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, bool recursive) {
@ -3121,6 +3129,50 @@ namespace WebsitePanel.EnterpriseServer {
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetCertificates", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public CertificateInfo[] GetCertificates(int serviceId, string remoteServer) {
object[] results = this.Invoke("GetCertificates", new object[] {
serviceId,
remoteServer});
return ((CertificateInfo[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetCertificates(int serviceId, string remoteServer, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetCertificates", new object[] {
serviceId,
remoteServer}, callback, asyncState);
}
/// <remarks/>
public CertificateInfo[] EndGetCertificates(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((CertificateInfo[])(results[0]));
}
/// <remarks/>
public void GetCertificatesAsync(int serviceId, string remoteServer) {
this.GetCertificatesAsync(serviceId, remoteServer, null);
}
/// <remarks/>
public void GetCertificatesAsync(int serviceId, string remoteServer, object userState) {
if ((this.GetCertificatesOperationCompleted == null)) {
this.GetCertificatesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetCertificatesOperationCompleted);
}
this.InvokeAsync("GetCertificates", new object[] {
serviceId,
remoteServer}, this.GetCertificatesOperationCompleted, userState);
}
private void OnGetCertificatesOperationCompleted(object arg) {
if ((this.GetCertificatesCompleted != null)) {
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.GetCertificatesCompleted(this, new GetCertificatesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
public new void CancelAsync(object userState) {
base.CancelAsync(userState);
@ -4556,4 +4608,30 @@ namespace WebsitePanel.EnterpriseServer {
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void GetCertificatesCompletedEventHandler(object sender, GetCertificatesCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class GetCertificatesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
private object[] results;
internal GetCertificatesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) :
base(exception, cancelled, userState) {
this.results = results;
}
/// <remarks/>
public CertificateInfo[] Result {
get {
this.RaiseExceptionIfNecessary();
return ((CertificateInfo[])(this.results[0]));
}
}
}
}