Sha256: 5ebc4dafcf5dcbb03890d60473a0cf45bf1ba24a61e981d7948f8588e9e3c52b

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

module Lunanode
  module APIActions
    module LB
      def lb_list(region:, net_id: nil)
        action(:lb, :list, region: region, net_id: net_id)
      end

      def lb_create(region:, net_id:, name:, method:, protocol:, connection_limit:, port:)
        action(:lb, :create, region: region, net_id: net_id, name: name, method: method, protocol: protocol, connection_limit: connection_limit, port: port)
      end

      def lb_delete(region:, lb_id:)
        action(:lb, :delete, region: region, lb_id: lb_id)
      end

      def lb_info(region:, lb_id:)
        action(:lb, :info, region: region, lb_id: lb_id)
      end

      def lb_member_add(region:, lb_id:, ip:, port:)
        action(:lb, :member_add, region: region, lb_id: lb_id, ip: ip, port: port)
      end

      def lb_member_remove(region:, lb_id:, member_id:)
        action(:lb, :member_remove, region: region, lb_id: lb_id, member_id: member_id)
      end

      def lb_associate(region:, lb_id:, ip:)
        action(:lb, :associate, region: region, lb_id: lb_id, ip: ip)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lunanode-0.3.1 lib/lunanode/api_actions/default/lb.rb
lunanode-0.3.0 lib/lunanode/api_actions/default/lb.rb
lunanode-0.2.0 lib/lunanode/api_actions/default/lb.rb
lunanode-0.1.6 lib/lunanode/api_actions/default/lb.rb
lunanode-0.1.5 lib/lunanode/api_actions/default/lb.rb