Sha256: 11eeb6b219bef92a302c7a4fbb598539b867af0280f5ae6ee304da64cbf0f5b4

Contents?: true

Size: 815 Bytes

Versions: 24

Compression:

Stored size: 815 Bytes

Contents

module Fog
  module Compute
    class 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
    end
  end
end

Version data entries

24 entries across 24 versions & 6 rubygems

Version Path
ktheory-fog-1.1.2 lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
fog-1.1.2 lib/fog/new_servers/requests/compute/list_plans.rb
fog_tractical-1.1.4 lib/fog/new_servers/requests/compute/list_plans.rb
fog_tractical-1.1.3 lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
fog-1.1.1 lib/fog/new_servers/requests/compute/list_plans.rb
fog-1.1.0 lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
tag-fog-1.0.1 lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/new_servers/requests/compute/list_plans.rb
fog-1.0.0 lib/fog/new_servers/requests/compute/list_plans.rb
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/new_servers/list_plans.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/compute/requests/new_servers/list_plans.rb
fog-0.11.0 lib/fog/compute/requests/new_servers/list_plans.rb