softlayer / softlayer-ruby

http://softlayer.github.io/softlayer-ruby/
MIT License
54 stars 35 forks source link

adding bandwidth allotment to VirtualServerOrder.rb #108

Open jinho10 opened 8 years ago

jinho10 commented 8 years ago

I found that the bandwidth allocation is missing.. in VirtualServerOrder.rb. Do you have any plan to add one? Looking through the server object, the following parameter can be added...

bandwidthAllocation A computing instance's allotted bandwidth (measured in GB). Type: decimal

any necessary functions like getting list of options can also be added in the file. thanks.

SLsthompson commented 8 years ago

We do not currently have plans to add any additional parameters to the VirtualServerOrder, but I can take this as a request to add one. In the mean time you can add any parameters to the order template that you want. Simply pass a block to verify or place_order!. The block should take one parameter that is the incoming order template. You may modify the template as you like (adding a bandwidthAllocation argument) and return the modified template. That is the template that will be verified or placed.

jinho10 commented 8 years ago

thanks for the replay. I already modified my local library to include the bandwidthAllocation, but it would be great to install off-the-shelf ruby library that already supports it without special modification. Since the bandwidth allocation has various options now with very different prices, it would also make sense to include that parameter as a passing parameter. thanks.