Sha256: b06f4cb918d33282e0c388050bf8e1d2cda1967ec899dcc262c511fe209728fc

Contents?: true

Size: 641 Bytes

Versions: 7

Compression:

Stored size: 641 Bytes

Contents

module Fog
  module Compute
    class OracleCloud
      class Real
      	def stop_orchestration (name)
          if !name.start_with?("/Compute-") then
            # They haven't provided a well formed name, add their name in
            name = "/Compute-#{@identity_domain}/#{@username}/#{name}"
          end   
          request(
            :method   => 'PUT',
            :expects  => 200,
            :path     => "/orchestration#{name}?action=stop",
            :headers  => {
              'Content-Type' => 'application/oracle-compute-v3+json'
            }
          )
      	end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/requests/compute/stop_orchestration.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/requests/compute/stop_orchestration.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/requests/compute/stop_orchestration.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/requests/compute/stop_orchestration.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/requests/compute/stop_orchestration.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/requests/compute/stop_orchestration.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/requests/compute/stop_orchestration.rb