nutanix / nutanix.ansible

Official Nutanix Ansible collections
GNU General Public License v3.0
67 stars 36 forks source link

[Imprv] Redesign Entity class to have meta checks for subclass creation in order to enable common methods in entity class #253

Closed bhati-pradeep closed 1 month ago

bhati-pradeep commented 2 years ago

Describe the request Redesign Entity class in such a way that it can have validation for sub class creation. Currently and in future, many common methods will be added due to common schemas in PC entities. New methods needs to be added to Entity class which can be used by all sub classes. So for this kind of use cases, we need to have some validations in Entity class which would check for certain properties required to create sub class out of it for every PC entity.

bhati-pradeep commented 2 years ago

Suggestion: Add method in entity class to create reference spec which is widely used across all modules as per entity subclass kind

bhati-pradeep commented 1 month ago

Closing this ticket as its not a priority anymore.