public void ConfigureStorageDrsForPod(ManagedObjectReference pod, StorageDrsConfigSpec spec, bool modify)
 {
     try
     {
         VersionUtils.RequiresVersion(this.Client, VimVersion.Vim50);
         ManagedObjectReference taskReference = this.ConfigureStorageDrsForPod_Task(pod, spec, modify);
         this.Client.WaitForTask(taskReference);
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }
        public ManagedObjectReference ConfigureStorageDrsForPod_Task(ManagedObjectReference pod, StorageDrsConfigSpec spec, bool modify)
        {
            ManagedObjectReference result;

            try
            {
                VersionUtils.RequiresVersion(this.Client, VimVersion.Vim50);
                ConfigureStorageDrsForPodRequestType configureStorageDrsForPodRequestType = new ConfigureStorageDrsForPodRequestType();
                configureStorageDrsForPodRequestType._this  = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                configureStorageDrsForPodRequestType.pod    = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(pod);
                configureStorageDrsForPodRequestType.spec   = (VimApi_65.StorageDrsConfigSpec)VIConvert.ToWsdlType(spec);
                configureStorageDrsForPodRequestType.modify = modify;
                result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.ConfigureStorageDrsForPod_Task(new ConfigureStorageDrsForPod_TaskRequest(configureStorageDrsForPodRequestType)).ConfigureStorageDrsForPod_TaskResponse.returnval);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }