public void ConfigureDatastoreIORM(ManagedObjectReference datastore, StorageIORMConfigSpec spec)
 {
     try
     {
         VersionUtils.RequiresVersion(this.Client, VimVersion.Vim41);
         ManagedObjectReference taskReference = this.ConfigureDatastoreIORM_Task(datastore, spec);
         this.Client.WaitForTask(taskReference);
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }
        public ManagedObjectReference ConfigureDatastoreIORM_Task(ManagedObjectReference datastore, StorageIORMConfigSpec spec)
        {
            ManagedObjectReference result;

            try
            {
                VersionUtils.RequiresVersion(this.Client, VimVersion.Vim41);
                ConfigureDatastoreIORMRequestType configureDatastoreIORMRequestType = new ConfigureDatastoreIORMRequestType();
                configureDatastoreIORMRequestType._this     = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                configureDatastoreIORMRequestType.datastore = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(datastore);
                configureDatastoreIORMRequestType.spec      = (VimApi_65.StorageIORMConfigSpec)VIConvert.ToWsdlType(spec);
                result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.ConfigureDatastoreIORM_Task(new ConfigureDatastoreIORM_TaskRequest(configureDatastoreIORMRequestType)).ConfigureDatastoreIORM_TaskResponse.returnval);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }