Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding bandwidth allotment to VirtualServerOrder.rb #108

Open
jinho10 opened this issue Jan 16, 2016 · 2 comments
Open

adding bandwidth allotment to VirtualServerOrder.rb #108

jinho10 opened this issue Jan 16, 2016 · 2 comments

Comments

@jinho10
Copy link

jinho10 commented Jan 16, 2016

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
Copy link
Collaborator

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
Copy link
Author

jinho10 commented Jan 24, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants