1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|elb] Rearrange DescribeLoadBalancersResult contents to alphabetical order to match the official AWS docs and make it easier to update the list.

This commit is contained in:
Blake Gentry 2011-05-30 15:08:58 -07:00
parent e281b14069
commit 9ea567cbcf
3 changed files with 19 additions and 19 deletions

View file

@ -6,10 +6,10 @@ module Fog
class LoadBalancer < Fog::Model class LoadBalancer < Fog::Model
identity :id, :aliases => 'LoadBalancerName' identity :id, :aliases => 'LoadBalancerName'
attribute :created_at, :aliases => 'CreatedTime'
attribute :health_check, :aliases => 'HealthCheck'
attribute :dns_name, :aliases => 'DNSName'
attribute :availability_zones, :aliases => 'AvailabilityZones' attribute :availability_zones, :aliases => 'AvailabilityZones'
attribute :created_at, :aliases => 'CreatedTime'
attribute :dns_name, :aliases => 'DNSName'
attribute :health_check, :aliases => 'HealthCheck'
attribute :instances, :aliases => 'Instances' attribute :instances, :aliases => 'Instances'
def initialize(attributes={}) def initialize(attributes={})

View file

@ -17,26 +17,26 @@ module Fog
# * 'RequestId'<~String> - Id of request # * 'RequestId'<~String> - Id of request
# * 'DescribeLoadBalancersResult'<~Hash>: # * 'DescribeLoadBalancersResult'<~Hash>:
# * 'LoadBalancerDescriptions'<~Array> # * 'LoadBalancerDescriptions'<~Array>
# * 'LoadBalancerName'<~String> - name of load balancer # * 'AvailabilityZones'<~Array> - list of availability zones covered by this load balancer
# * 'DNSName'<~String> - external DNS name of load balancer
# * 'CreatedTime'<~Time> - time load balancer was created # * 'CreatedTime'<~Time> - time load balancer was created
# * 'ListenerDescriptions'<~Array> # * 'DNSName'<~String> - external DNS name of load balancer
# * 'PolicyNames'<~Array> - list of policies enabled
# * 'Listener'<~Hash>:
# * 'InstancePort'<~Integer> - port on instance that requests are sent to
# * 'Protocol'<~String> - transport protocol used for routing in [TCP, HTTP]
# * 'LoadBalancerPort'<~Integer> - port that load balancer listens on for requests
# * 'HealthCheck'<~Hash>: # * 'HealthCheck'<~Hash>:
# * 'HealthyThreshold'<~Integer> - number of consecutive health probe successes required before moving the instance to the Healthy state # * 'HealthyThreshold'<~Integer> - number of consecutive health probe successes required before moving the instance to the Healthy state
# * 'Timeout'<~Integer> - number of seconds after which no response means a failed health probe # * 'Timeout'<~Integer> - number of seconds after which no response means a failed health probe
# * 'Interval'<~Integer> - interval (in seconds) between health checks of an individual instance # * 'Interval'<~Integer> - interval (in seconds) between health checks of an individual instance
# * 'UnhealthyThreshold'<~Integer> - number of consecutive health probe failures that move the instance to the unhealthy state # * 'UnhealthyThreshold'<~Integer> - number of consecutive health probe failures that move the instance to the unhealthy state
# * 'Target'<~String> - string describing protocol type, port and URL to check # * 'Target'<~String> - string describing protocol type, port and URL to check
# * 'Instances'<~Array> - list of instances that the load balancer balances between
# * 'ListenerDescriptions'<~Array>
# * 'PolicyNames'<~Array> - list of policies enabled
# * 'Listener'<~Hash>:
# * 'InstancePort'<~Integer> - port on instance that requests are sent to
# * 'Protocol'<~String> - transport protocol used for routing in [TCP, HTTP]
# * 'LoadBalancerPort'<~Integer> - port that load balancer listens on for requests
# * 'LoadBalancerName'<~String> - name of load balancer
# * 'Policies'<~Hash>: # * 'Policies'<~Hash>:
# * 'LBCookieStickinessPolicies'<~Array> - list of Load Balancer Generated Cookie Stickiness policies for the LoadBalancer # * 'LBCookieStickinessPolicies'<~Array> - list of Load Balancer Generated Cookie Stickiness policies for the LoadBalancer
# * 'AppCookieStickinessPolicies'<~Array> - list of Application Generated Cookie Stickiness policies for the LoadBalancer # * 'AppCookieStickinessPolicies'<~Array> - list of Application Generated Cookie Stickiness policies for the LoadBalancer
# * 'AvailabilityZones'<~Array> - list of availability zones covered by this load balancer
# * 'Instances'<~Array> - list of instances that the load balancer balances between
def describe_load_balancers(lb_name = []) def describe_load_balancers(lb_name = [])
params = AWS.indexed_param('LoadBalancerNames.member', [*lb_name]) params = AWS.indexed_param('LoadBalancerNames.member', [*lb_name])
request({ request({

View file

@ -7,14 +7,14 @@ class AWS
} }
LOAD_BALANCER = { LOAD_BALANCER = {
"CreatedTime" => Time,
"ListenerDescriptions" => Array,
"HealthCheck" => {"HealthyThreshold" => Integer, "Timeout" => Integer, "UnhealthyThreshold" => Integer, "Interval" => Integer, "Target" => String},
"Policies" => {"LBCookieStickinessPolicies" => Array, "AppCookieStickinessPolicies" => Array},
"AvailabilityZones" => Array, "AvailabilityZones" => Array,
"CreatedTime" => Time,
"DNSName" => String, "DNSName" => String,
"LoadBalancerName"=> String, "HealthCheck" => {"HealthyThreshold" => Integer, "Timeout" => Integer, "UnhealthyThreshold" => Integer, "Interval" => Integer, "Target" => String},
"Instances"=> Array "Instances" => Array,
"ListenerDescriptions" => Array,
"LoadBalancerName" => String,
"Policies" => {"LBCookieStickinessPolicies" => Array, "AppCookieStickinessPolicies" => Array},
} }
CREATE_LOAD_BALANCER = BASIC.merge({ CREATE_LOAD_BALANCER = BASIC.merge({