Sha256: 31dbd2c24f258b3e1cc353e587bb7d44afea21461f5ac1fc87836e15d8ce82d8

Contents?: true

Size: 1.48 KB

Versions: 20

Compression:

Stored size: 1.48 KB

Contents

module Fog
  module AWS
    module ELB
      class Real

        # Enable an availability zone for an existing ELB
        #
        # ==== Parameters
        # * availability_zones<~Array> - List of availability zones to enable on ELB
        # * lb_name<~String> - Load balancer to enable availability zones on
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'RequestId'<~String> - Id of request
        #     * 'EnableAvailabilityZonesForLoadBalancerResult'<~Hash>:
        #       * 'AvailabilityZones'<~Array> - array of strings describing instances currently enabled
        def enable_availability_zones_for_load_balancer(availability_zones, lb_name)
          params = ELB.indexed_param('AvailabilityZones.member', [*availability_zones], 1)
          request({
            'Action'           => 'EnableAvailabilityZonesForLoadBalancer',
            'LoadBalancerName' => lb_name,
            :parser            => Fog::Parsers::AWS::ELB::EnableAvailabilityZonesForLoadBalancer.new
          }.merge!(params))
        end

        alias :enable_zones :enable_availability_zones_for_load_balancer

      end

      class Mock

        def enable_availability_zones_for_load_balancer(availability_zones, lb_name)
          raise MockNotImplemented.new("Contributions welcome!")
        end

        alias :enable_zones :enable_availability_zones_for_load_balancer

      end

    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fog-0.1.3 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.1.2 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.1.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.1.0 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.100 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.99 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.98 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.97 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.96 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.95 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.94 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.93 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.92 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.91 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.90 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.89 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.88 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.87 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.86 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.0.85 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb