public void InstallHostPatch(HostPatchManagerLocator repository, string updateID, bool?force)
 {
     try
     {
         ManagedObjectReference taskReference = this.InstallHostPatch_Task(repository, updateID, force);
         this.Client.WaitForTask(taskReference);
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }
 public HostPatchManagerStatus[] ScanHostPatch(HostPatchManagerLocator repository, string[] updateID)
 {
     HostPatchManagerStatus[] result;
     try
     {
         ManagedObjectReference taskReference = this.ScanHostPatch_Task(repository, updateID);
         result = (HostPatchManagerStatus[])this.Client.WaitForTask(taskReference);
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
     return(result);
 }
        public ManagedObjectReference ScanHostPatch_Task(HostPatchManagerLocator repository, string[] updateID)
        {
            ManagedObjectReference result;

            try
            {
                ScanHostPatchRequestType scanHostPatchRequestType = new ScanHostPatchRequestType();
                scanHostPatchRequestType._this      = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                scanHostPatchRequestType.repository = (VimApi_65.HostPatchManagerLocator)VIConvert.ToWsdlType(repository);
                scanHostPatchRequestType.updateID   = updateID;
                result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.ScanHostPatch_Task(new ScanHostPatch_TaskRequest(scanHostPatchRequestType)).ScanHostPatch_TaskResponse.returnval);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }
        public ManagedObjectReference InstallHostPatch_Task(HostPatchManagerLocator repository, string updateID, bool?force)
        {
            ManagedObjectReference result;

            try
            {
                InstallHostPatchRequestType installHostPatchRequestType = new InstallHostPatchRequestType();
                installHostPatchRequestType._this          = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                installHostPatchRequestType.repository     = (VimApi_65.HostPatchManagerLocator)VIConvert.ToWsdlType(repository);
                installHostPatchRequestType.updateID       = updateID;
                installHostPatchRequestType.force          = force.GetValueOrDefault();
                installHostPatchRequestType.forceSpecified = force.HasValue;
                result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.InstallHostPatch_Task(new InstallHostPatch_TaskRequest(installHostPatchRequestType)).InstallHostPatch_TaskResponse.returnval);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }