mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
40 lines
1.1 KiB
Ruby
40 lines
1.1 KiB
Ruby
|
class AWS
|
||
|
module ELBV2
|
||
|
module Formats
|
||
|
BASIC = {
|
||
|
'ResponseMetadata' => {'RequestId' => String}
|
||
|
}
|
||
|
|
||
|
LOAD_BALANCER = {
|
||
|
"AvailabilityZones" => Array,
|
||
|
"LoadBalancerArn" => String,
|
||
|
"DNSName" => String,
|
||
|
"CreatedTime" => Time,
|
||
|
"LoadBalancerName" => String,
|
||
|
"VpcId" => String,
|
||
|
"CanonicalHostedZoneId" => String,
|
||
|
"Scheme" => String,
|
||
|
"Type" => String,
|
||
|
"State" => {"Code" => String},
|
||
|
"SecurityGroups" => [Fog::Nullable::String]
|
||
|
}
|
||
|
|
||
|
DESCRIBE_LOAD_BALANCERS = BASIC.merge({
|
||
|
'DescribeLoadBalancersResult' => {'LoadBalancers' => [LOAD_BALANCER], 'NextMarker' => Fog::Nullable::String}
|
||
|
})
|
||
|
|
||
|
LISTENER = {
|
||
|
"LoadBalancerArn" => String,
|
||
|
"Protocol" => String,
|
||
|
"Port" => String,
|
||
|
"ListenerArn" => String,
|
||
|
"DefaultActions" => [{"Type" => String, "TargetGroupArn" => String}]
|
||
|
}
|
||
|
|
||
|
DESCRIBE_LISTENERS = BASIC.merge({
|
||
|
'DescribeListenersResult' => {'Listeners' => [LISTENER], 'NextMarker' => Fog::Nullable::String}
|
||
|
})
|
||
|
end
|
||
|
end
|
||
|
end
|