Sha256: a4a4249cac7ea4d4ca8915108e54822573686e8002c6df3048f2aa2d08003475

Contents?: true

Size: 1.53 KB

Versions: 34

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])
          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

34 entries across 34 versions & 3 rubygems

Version Path
fog-0.8.2 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.8.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.8.0 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.7.2 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.7.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.7.0 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.6.0 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.5.3 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.5.2 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.5.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.5.0 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
phpfog-fog-0.4.1.3 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
phpfog-fog-0.4.1.2 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
phpfog-fog-0.4.1.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
phpfog-fog-0.4.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.4.1 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.4.0 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.34 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.33 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb
fog-0.3.32 lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb