Sha256: 7df3ad7469c11bec6fcc96b041b9698935693f6c5ad0eaf5dda4f385a4e9c04f
Contents?: true
Size: 1.03 KB
Versions: 13
Compression:
Stored size: 1.03 KB
Contents
module Fog module Compute class Brightbox class Real # Adds a number of listeners to the load balancer to enable balancing across nodes for those settings. # # @param [String] identifier Unique reference to identify the resource # @param [Hash] options # @option options [Array] :listeners Array of Listener parameters. Timeout is optional and specified in milliseconds. # @option options [Boolean] :nested passed through with the API request. When true nested resources are expanded. # # @return [Hash] if successful Hash version of JSON object # @return [NilClass] if no options were passed # # @see https://api.gb1.brightbox.com/1.0/#load_balancer_add_listeners_load_balancer # def add_listeners_load_balancer(identifier, options) return nil if identifier.nil? || identifier == "" wrapped_request("post", "/1.0/load_balancers/#{identifier}/add_listeners", [202], options) end end end end end
Version data entries
13 entries across 11 versions & 2 rubygems