Sha256: 8b436124b027317b21dce324a2bf46d58bbbc285be655b9505fa8e48b8fe1f0d

Contents?: true

Size: 788 Bytes

Versions: 79

Compression:

Stored size: 788 Bytes

Contents

module Fog
  module Compute
    class Cloudstack
      class Real

        # Lists all pending asynchronous jobs for the account.
        #
        # {CloudStack API Reference}[http://download.cloud.com/releases/2.2.0/api_2.2.4/global_admin/listAsyncJobs.html]
        def list_async_jobs(options={})
          options.merge!(
            'command' => 'listAsyncJobs'
          )

          request(options)
        end

      end # Real
      class Mock
        def list_async_jobs(options={})
          # FIXME: support paging
          jobs = self.data[:jobs]
          {
            'listasyncjobsresponse' => {
              'count' => jobs.size,
              'asyncjobs' => jobs
            }
          }
        end
      end # Mock
    end # Cloudstack
  end # Compute
end # Fog

Version data entries

79 entries across 79 versions & 12 rubygems

Version Path
fog-maestrodev-1.18.0.20131209090811 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131205181604 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
gapinc-fog-1.12.1.2.1 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.18.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.17.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.16.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb