Sha256: 1438261cec05bfa3527831ada40547e467e6ea84e0a8694b856cb28c1f26db86

Contents?: true

Size: 598 Bytes

Versions: 9

Compression:

Stored size: 598 Bytes

Contents

module Fog
  module Compute
    class QingCloud
      class Real

        # {API Reference}[https://docs.qingcloud.com/api/router/poweroff_routers.html]
        # {API Reference}[https://docs.qingcloud.com/api/router/poweron_routers.html]
        def routers_power(id, action)
          action = action.downcase.capitalize
          args = {'action' => "Power#{action}Routers"}
          args.merge!(Fog::QingCloud.indexed_param('routers', [*id]))
          request(args)
        end
      end

      class Mock
        def routers_power(id, action)
        end        
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ns-fog-1.22.11 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.10 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.9 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.8 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.7 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.6 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.4 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.3 lib/fog/qingcloud/requests/compute/routers_power.rb
ns-fog-1.22.2 lib/fog/qingcloud/requests/compute/routers_power.rb