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-1.10.1 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-parser-fix-1.6.1 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-test-again-1.6.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-test-me-1.10.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-parser-fix-1.6.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.10.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.9.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-sgonyea-1.8.1 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.8.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.7.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.6.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.5.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb
rackspace-fog-1.4.2 lib/rackspace-fog/cloudstack/requests/compute/list_async_jobs.rb
fog-1.4.0 lib/fog/cloudstack/requests/compute/list_async_jobs.rb