Sha256: d3e093e9ed4e91ac8c4c5245d1af40e98ce975de2b47b1ed42dee6204534a333

Contents?: true

Size: 777 Bytes

Versions: 28

Compression:

Stored size: 777 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Assign load balancer rule or list of load balancer rules to a global load balancer rules.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/assignToGlobalLoadBalancerRule.html]
        def assign_to_global_load_balancer_rule(*args)
          options = {}
          if args[0].is_a? Hash
            options = args[0]
            options.merge!('command' => 'assignToGlobalLoadBalancerRule') 
          else
            options.merge!('command' => 'assignToGlobalLoadBalancerRule', 
            'id' => args[0], 
            'loadbalancerrulelist' => 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/assign_to_global_load_balancer_rule.rb
fog-1.29.0 lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb
fog-1.28.0 lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb
fog-1.27.0 lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb
fog-1.26.0 lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb
fog-1.25.0 lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb
nsidc-fog-1.24.1 lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb
fog-1.24.0 lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb