Sha256: 5f7ec167200696067513b2899fd3bdf673e7ac0a47d666b01a303ceb66225822

Contents?: true

Size: 1.04 KB

Versions: 40

Compression:

Stored size: 1.04 KB

Contents

module Fog
  module Rackspace
    class AutoScale
      class Real

        # Retrieves a list of images
        # @return [Excon::Response] response:
        #   * body [Hash]:
        #     * images [Array]:
        #       * [Hash]:
        #         * id [String] - flavor id
        #         * links [Array] - image links
        #         * name [String] - image name
        # @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
        # @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
        # @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
        # @raise [Fog::Compute::RackspaceV2::ServiceError]
        # @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Flavors-d1e4188.html
        def list_groups
          request(
            :expects => [200],
            :method => 'GET',
            :path => 'groups'
          )
        end
      end

      class Mock
        def list_groups
          response(:body => {"groups" => self.data[:autoscale_groups]})
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-1.18.0 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-1.17.0 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-1.16.0 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/rackspace/requests/auto_scale/list_groups.rb