Sha256: 9e7b58ef21dd6cd2fcc7e7f29e0f70369ea8c26a36f2c62cfea2b0680dee110e

Contents?: true

Size: 777 Bytes

Versions: 9

Compression:

Stored size: 777 Bytes

Contents

class Ey::Core::Client
  class Real
    def get_auto_scaling_groups(options={})
      query = Ey::Core.paging_parameters(options)
      url   = options.delete("url")

      request(
        :params => options,
        :query  => query,
        :path   => "/auto_scaling_groups",
        :url    => url,
      )
    end
  end

  class Mock
    def get_auto_scaling_groups(options={})
      extract_url_params!(options)

      headers, auto_scaling_groups_page = search_and_page(options, :auto_scaling_groups, search_keys: %w[environment environment_id account account_id provider provider_id provisioned_id])

      response(
        :body    => {"auto_scaling_groups" => auto_scaling_groups_page},
        :status  => 200,
        :headers => headers
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
ey-core-3.6.0.autoscaling1 lib/ey-core/requests/get_auto_scaling_groups.rb
ey-core-3.6.4 lib/ey-core/requests/get_auto_scaling_groups.rb
ey-core-3.6.3 lib/ey-core/requests/get_auto_scaling_groups.rb
ey-core-3.6.1 lib/ey-core/requests/get_auto_scaling_groups.rb
groove-ey-core-3.6.3 lib/ey-core/requests/get_auto_scaling_groups.rb
groove-ey-core-3.6.2 lib/ey-core/requests/get_auto_scaling_groups.rb
groove-ey-core-3.6.1 lib/ey-core/requests/get_auto_scaling_groups.rb
ey-core-3.5.0 lib/ey-core/requests/get_auto_scaling_groups.rb
ey-core-3.4.4 lib/ey-core/requests/get_auto_scaling_groups.rb