Sha256: abae100d5a98aadded75807a26814ec88a4146579592c290f7e02d5cf20f6364

Contents?: true

Size: 699 Bytes

Versions: 28

Compression:

Stored size: 699 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Upgrades domain router to a new service offering
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/changeServiceForRouter.html]
        def change_service_for_router(*args)
          options = {}
          if args[0].is_a? Hash
            options = args[0]
            options.merge!('command' => 'changeServiceForRouter') 
          else
            options.merge!('command' => 'changeServiceForRouter', 
            'serviceofferingid' => args[0], 
            'id' => args[1])
          end
          request(options)
        end
      end

    end
  end
end

Version data entries

28 entries across 26 versions & 4 rubygems

Version Path
fog-1.30.0 lib/fog/cloudstack/requests/compute/change_service_for_router.rb
fog-1.29.0 lib/fog/cloudstack/requests/compute/change_service_for_router.rb
fog-1.28.0 lib/fog/cloudstack/requests/compute/change_service_for_router.rb
fog-1.27.0 lib/fog/cloudstack/requests/compute/change_service_for_router.rb
fog-1.26.0 lib/fog/cloudstack/requests/compute/change_service_for_router.rb
fog-1.25.0 lib/fog/cloudstack/requests/compute/change_service_for_router.rb
nsidc-fog-1.24.1 lib/fog/cloudstack/requests/compute/change_service_for_router.rb
fog-1.24.0 lib/fog/cloudstack/requests/compute/change_service_for_router.rb