Sha256: 37e9755f3726b85a95f936c70716792469c3f8292bf4c06c53819a018889c7c1

Contents?: true

Size: 508 Bytes

Versions: 5

Compression:

Stored size: 508 Bytes

Contents

module Fog
  module OracleCloud
    class SOA
      class Real

      	def get_job_status(type, job_id)
 					response = request(
            :expects  => 200,
            :method   => 'GET',
            :path     => "/paas/service/soa/api/v1.1/instances/#{@identity_domain}/status/#{type}/job/#{job_id}"
          )
          response.body['message']
        end
      end

      class Mock
        def get_job_status(type, job_id)
          ['Creation job succeded']
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.17 lib/fog/oraclecloud/requests/soa/get_job_status.rb
fog-oraclecloud-0.1.16 lib/fog/oraclecloud/requests/soa/get_job_status.rb
fog-oraclecloud-0.1.15 lib/fog/oraclecloud/requests/soa/get_job_status.rb
fog-oraclecloud-0.1.14 lib/fog/oraclecloud/requests/soa/get_job_status.rb
fog-oraclecloud-0.1.13 lib/fog/oraclecloud/requests/soa/get_job_status.rb