mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
36 lines
836 B
Ruby
36 lines
836 B
Ruby
module Fog
|
|
module NewServers
|
|
class Real
|
|
|
|
# List available plans
|
|
#
|
|
# ==== Returns
|
|
# * response<~Excon::Response>:
|
|
# * body<~Array>:
|
|
# * 'description'<~String> - Description of the plan
|
|
# * 'id'<~String> - Id of the plan
|
|
# * 'name'<~String> - Name of the plan
|
|
# * 'rate'<~String> - Cost per hour of the plan
|
|
# * 'os'<~String> - Operating system of the plan
|
|
# * 'config'<~String> - Configuration of the plan
|
|
#
|
|
def list_plans
|
|
request(
|
|
:expects => 200,
|
|
:method => 'GET',
|
|
:parser => Fog::ToHashDocument.new,
|
|
:path => 'api/listPlans'
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
class Mock
|
|
|
|
def list_plans
|
|
Fog::Mock.not_implemented
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|