I forgot to mention in my previous reply that this is something I'm happy to bring up with the product management team to discuss the level of effort and whether it's feasible to add. I can't make any guarantees, but I do believe it could be a valuable addition and increase the usability of the ONTAP module.
If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
I'm not quite sure I understand your request. I think what you're asking for is to have "Update-NcXXXXX" cmdlets for each of the properties associated with a volume (among other objects)?
If that's true, then I do sympathize with your sentiment as it would make the most sense from a usability perspective. However, the ONTAP modules are created to mimic ZAPI functionality. In this instance, these volume attributes are all updated by the "volume-modify-iter" ZAPI (which maps to the "Update-NcVol" cmdlet).
I can not (and will not try to) rationalize or justify the engineering decision behind this since I wasn't a part of it, but I do also empathize with the engineering team. Having each of these be a separate cmdlet (really, multiple cmdlets, since there would be both a Get and Set/Update cmdlet, and in some cases a Remove too) would create a tremendous number of additional cmdlets, easily several hundred, which need to be individually maintained and updated.
Again, while I'm not defending the current status, it is quite easy to select the volumes using a query:
The whole building a command hash table to update seems quirky to me. Again, that's just my opinion.
Back in the day when Cliff knight was writing it, we would have correspondence with him, but he told me a while ago he moved on to other roles.
Believe me I appreciate all the hard work that went into PS toolkit, but I feel like there has to be improvement.
I can write the exact same code you have below, but the point is, for most guys, they want to be able to do traditional PS. That reminds me of Quest AD cmdlets before MS released their own. They just feel quirky to me.
I will gladly have a call with you if you would like.