HewlettPackard / oneview-sdk-ruby

This project is no longer being developed and has limited support. In the near future this repository will be fully deprecated. Please consider using other OneView projects, such as Golang and Python.
Apache License 2.0
12 stars 16 forks source link

[API300] Why is Switch the only resource that directly implements #set_scope_uris? #146

Closed tmiotto closed 7 years ago

tmiotto commented 7 years ago

Scenario/Intent

I'm trying to understand why API300 Switch has the #set_scope_uris, but other resources don't, like, server_hardware, enclosure...

I know it is the only patch operation it supports right now but, if we are trying to have some consistency, or every single patch operation has to be implemented as a separate method, or the API300 Switch should implement a #patch method.

Environment Details

ricardogpsf commented 7 years ago

With the #133 some helper methods (add_scope, remove_scope, replace_scopes) were added to Enclosure and ServerHardware too. And with #147 the helper methods were added to LogicalSwitch too.