2019-10-28 05:56:19 -04:00
|
|
|
class AWS
|
|
|
|
module ELBV2
|
|
|
|
module Formats
|
|
|
|
BASIC = {
|
|
|
|
'ResponseMetadata' => {'RequestId' => String}
|
|
|
|
}
|
|
|
|
|
|
|
|
LOAD_BALANCER = {
|
2019-10-29 08:49:56 -04:00
|
|
|
"AvailabilityZones" => [{
|
|
|
|
"SubnetId" => String, "ZoneName" => String,
|
|
|
|
"LoadBalancerAddresses" => [Fog::Nullable::Hash]
|
|
|
|
}],
|
2019-10-28 05:56:19 -04:00
|
|
|
"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}
|
|
|
|
})
|
|
|
|
|
2019-11-26 05:18:14 -05:00
|
|
|
CREATE_LOAD_BALANCER = BASIC.merge({
|
2019-12-22 06:17:30 -05:00
|
|
|
'CreateLoadBalancerResult' => {'LoadBalancers' => [LOAD_BALANCER]}
|
2019-11-26 05:18:14 -05:00
|
|
|
})
|
|
|
|
|
2019-11-26 05:35:33 -05:00
|
|
|
LISTENER_DEFAULT_ACTIONS = [{
|
|
|
|
"Type" => String,
|
2019-11-26 10:18:20 -05:00
|
|
|
"Order" => String,
|
2019-11-26 05:35:33 -05:00
|
|
|
"TargetGroupArn" => String,
|
2019-11-26 10:12:56 -05:00
|
|
|
"RedirectConfig" => Fog::Nullable::Hash,
|
2019-11-26 10:33:50 -05:00
|
|
|
"ForwardConfig" => Fog::Nullable::Hash,
|
|
|
|
"FixedResponseConfig" => Fog::Nullable::Hash
|
2019-11-26 05:35:33 -05:00
|
|
|
}]
|
|
|
|
|
2019-10-28 05:56:19 -04:00
|
|
|
LISTENER = {
|
|
|
|
"LoadBalancerArn" => String,
|
|
|
|
"Protocol" => String,
|
|
|
|
"Port" => String,
|
|
|
|
"ListenerArn" => String,
|
2019-11-26 10:18:20 -05:00
|
|
|
"SslPolicy" => String,
|
2019-11-26 05:35:33 -05:00
|
|
|
"DefaultActions" => LISTENER_DEFAULT_ACTIONS,
|
2019-11-26 05:18:14 -05:00
|
|
|
"Certificates" => [{"CertificateArn" => String}]
|
2019-10-28 05:56:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
DESCRIBE_LISTENERS = BASIC.merge({
|
|
|
|
'DescribeListenersResult' => {'Listeners' => [LISTENER], 'NextMarker' => Fog::Nullable::String}
|
|
|
|
})
|
2020-01-13 09:02:20 -05:00
|
|
|
|
|
|
|
TAG_DESCRIPTIONS = [{
|
|
|
|
"Tags" => Hash,
|
|
|
|
"ResourceArn" => String
|
|
|
|
}]
|
|
|
|
|
|
|
|
DESCRIBE_TAGS = BASIC.merge({
|
|
|
|
'DescribeTagsResult' => {'TagDescriptions' => TAG_DESCRIPTIONS}
|
|
|
|
})
|
2019-10-28 05:56:19 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|