softlayer-ruby icon indicating copy to clipboard operation
softlayer-ruby copied to clipboard

adding bandwidth allotment to VirtualServerOrder.rb

Open jinho10 opened this issue 9 years ago • 2 comments

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.

jinho10 avatar Jan 16 '16 21:01 jinho10

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.

SLsthompson avatar Jan 18 '16 14:01 SLsthompson

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.

jinho10 avatar Jan 24 '16 20:01 jinho10