public ManagedObjectReference deployVcha_Task(VchaClusterDeploymentSpec deploymentSpec)
        {
            ManagedObjectReference result;

            try
            {
                if (this.Client.Version == VimVersion.Vim51)
                {
                    throw new NotSupportedException(string.Format(Resources.MethodNotSupported, this.Client.ServiceContent.About.ApiVersion));
                }
                if (this.Client.Version == VimVersion.Vim55)
                {
                    throw new NotSupportedException(string.Format(Resources.MethodNotSupported, this.Client.ServiceContent.About.ApiVersion));
                }
                if (this.Client.Version == VimVersion.Vim60)
                {
                    throw new NotSupportedException(string.Format(Resources.MethodNotSupported, this.Client.ServiceContent.About.ApiVersion));
                }
                deployVchaRequestType deployVchaRequestType = new deployVchaRequestType();
                deployVchaRequestType._this          = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                deployVchaRequestType.deploymentSpec = (VimApi_65.VchaClusterDeploymentSpec)VIConvert.ToWsdlType(deploymentSpec);
                result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.deployVcha_Task(new deployVcha_TaskRequest(deployVchaRequestType)).deployVcha_TaskResponse.returnval);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }
 public void deployVcha(VchaClusterDeploymentSpec deploymentSpec)
 {
     try
     {
         if (this.Client.Version == VimVersion.Vim51)
         {
             throw new NotSupportedException(string.Format(Resources.MethodNotSupported, this.Client.ServiceContent.About.ApiVersion));
         }
         if (this.Client.Version == VimVersion.Vim55)
         {
             throw new NotSupportedException(string.Format(Resources.MethodNotSupported, this.Client.ServiceContent.About.ApiVersion));
         }
         if (this.Client.Version == VimVersion.Vim60)
         {
             throw new NotSupportedException(string.Format(Resources.MethodNotSupported, this.Client.ServiceContent.About.ApiVersion));
         }
         ManagedObjectReference taskReference = this.deployVcha_Task(deploymentSpec);
         this.Client.WaitForTask(taskReference);
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }