Sha256: 92da53f9924cc4c4b36b6cfbff47526cad29886c374a7ecf415577488029a7ca

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 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

3 entries across 3 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/requests/soa/get_job_status.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/requests/soa/get_job_status.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/requests/soa/get_job_status.rb