public ManagedObjectReference prepareVcha_Task(VchaClusterNetworkSpec networkSpec)
        {
            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));
                }
                prepareVchaRequestType prepareVchaRequestType = new prepareVchaRequestType();
                prepareVchaRequestType._this       = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                prepareVchaRequestType.networkSpec = (VimApi_65.VchaClusterNetworkSpec)VIConvert.ToWsdlType(networkSpec);
                result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.prepareVcha_Task(new prepareVcha_TaskRequest(prepareVchaRequestType)).prepareVcha_TaskResponse.returnval);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }
 public void prepareVcha(VchaClusterNetworkSpec networkSpec)
 {
     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.prepareVcha_Task(networkSpec);
         this.Client.WaitForTask(taskReference);
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }