Sha256: 9a5bb0021c91fdaf8322909ac549f2cee16ae9a265537ffbaa799ada0aa7e586

Contents?: true

Size: 819 Bytes

Versions: 11

Compression:

Stored size: 819 Bytes

Contents

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

11 entries across 11 versions & 5 rubygems

Version Path
fog-1.5.0 lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
rackspace-fog-1.4.2 lib/rackspace-fog/bare_metal_cloud/requests/compute/list_plans.rb
fog-1.4.0 lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
michiels-fog-1.3.1 lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
fog-1.3.1 lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
fog-1.3.0 lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/bare_metal_cloud/requests/compute/list_plans.rb
fog-1.2.0 lib/fog/bare_metal_cloud/requests/compute/list_plans.rb