Sha256: 4aec29a59048bff3627cee0e1d4236c68dee96afe8618acc27a1a717b15f7298

Contents?: true

Size: 1.53 KB

Versions: 19

Compression:

Stored size: 1.53 KB

Contents

module Fog
  module AWS
    class ELB
      class Real

        require 'fog/aws/parsers/elb/enable_availability_zones_for_load_balancer'

        # 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 = AWS.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)
          Fog::Mock.not_implemented
        end

        alias :enable_zones :enable_availability_zones_for_load_balancer

      end

    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
fog-0.3.18 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.17 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.16 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.15 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.14 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.13 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.12 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.11 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.10 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.9 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.8 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.7 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.6 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.5 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.4 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.3 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.2 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.0 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb