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-1.22.0 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-1.21.0 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-1.20.0 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-1.19.0 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/rackspace/requests/auto_scale/list_groups.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/rackspace/requests/auto_scale/list_groups.rb