1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/requests/elbv2/helper.rb

67 lines
1.9 KiB
Ruby
Raw Permalink Normal View History

2019-10-28 05:56:19 -04:00
class AWS
module ELBV2
module Formats
BASIC = {
'ResponseMetadata' => {'RequestId' => String}
}
LOAD_BALANCER = {
"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}
})
CREATE_LOAD_BALANCER = BASIC.merge({
2019-12-22 06:17:30 -05:00
'CreateLoadBalancerResult' => {'LoadBalancers' => [LOAD_BALANCER]}
})
LISTENER_DEFAULT_ACTIONS = [{
"Type" => String,
"Order" => String,
"TargetGroupArn" => String,
"RedirectConfig" => Fog::Nullable::Hash,
"ForwardConfig" => Fog::Nullable::Hash,
"FixedResponseConfig" => Fog::Nullable::Hash
}]
2019-10-28 05:56:19 -04:00
LISTENER = {
"LoadBalancerArn" => String,
"Protocol" => String,
"Port" => String,
"ListenerArn" => String,
"SslPolicy" => String,
"DefaultActions" => LISTENER_DEFAULT_ACTIONS,
"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