Пример #1
0
        public static DescribeLoadBalancerAttributeResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeLoadBalancerAttributeResponse describeLoadBalancerAttributeResponse = new DescribeLoadBalancerAttributeResponse();

            describeLoadBalancerAttributeResponse.HttpResponse       = context.HttpResponse;
            describeLoadBalancerAttributeResponse.RequestId          = context.StringValue("DescribeLoadBalancerAttribute.RequestId");
            describeLoadBalancerAttributeResponse.LoadBalancerId     = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerId");
            describeLoadBalancerAttributeResponse.ResourceGroupId    = context.StringValue("DescribeLoadBalancerAttribute.ResourceGroupId");
            describeLoadBalancerAttributeResponse.LoadBalancerName   = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerName");
            describeLoadBalancerAttributeResponse.LoadBalancerStatus = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerStatus");
            describeLoadBalancerAttributeResponse.RegionId           = context.StringValue("DescribeLoadBalancerAttribute.RegionId");
            describeLoadBalancerAttributeResponse.RegionIdAlias      = context.StringValue("DescribeLoadBalancerAttribute.RegionIdAlias");
            describeLoadBalancerAttributeResponse.Address            = context.StringValue("DescribeLoadBalancerAttribute.Address");
            describeLoadBalancerAttributeResponse.AddressType        = context.StringValue("DescribeLoadBalancerAttribute.AddressType");
            describeLoadBalancerAttributeResponse.VpcId              = context.StringValue("DescribeLoadBalancerAttribute.VpcId");
            describeLoadBalancerAttributeResponse.VSwitchId          = context.StringValue("DescribeLoadBalancerAttribute.VSwitchId");
            describeLoadBalancerAttributeResponse.NetworkType        = context.StringValue("DescribeLoadBalancerAttribute.NetworkType");
            describeLoadBalancerAttributeResponse.InternetChargeType = context.StringValue("DescribeLoadBalancerAttribute.InternetChargeType");
            describeLoadBalancerAttributeResponse.AutoReleaseTime    = context.LongValue("DescribeLoadBalancerAttribute.AutoReleaseTime");
            describeLoadBalancerAttributeResponse.Bandwidth          = context.IntegerValue("DescribeLoadBalancerAttribute.Bandwidth");
            describeLoadBalancerAttributeResponse.LoadBalancerSpec   = context.StringValue("DescribeLoadBalancerAttribute.LoadBalancerSpec");
            describeLoadBalancerAttributeResponse.CreateTime         = context.StringValue("DescribeLoadBalancerAttribute.CreateTime");
            describeLoadBalancerAttributeResponse.CreateTimeStamp    = context.LongValue("DescribeLoadBalancerAttribute.CreateTimeStamp");
            describeLoadBalancerAttributeResponse.EndTime            = context.StringValue("DescribeLoadBalancerAttribute.EndTime");
            describeLoadBalancerAttributeResponse.EndTimeStamp       = context.LongValue("DescribeLoadBalancerAttribute.EndTimeStamp");
            describeLoadBalancerAttributeResponse.PayType            = context.StringValue("DescribeLoadBalancerAttribute.PayType");
            describeLoadBalancerAttributeResponse.MasterZoneId       = context.StringValue("DescribeLoadBalancerAttribute.MasterZoneId");
            describeLoadBalancerAttributeResponse.SlaveZoneId        = context.StringValue("DescribeLoadBalancerAttribute.SlaveZoneId");

            List <string> describeLoadBalancerAttributeResponse_listenerPorts = new List <string>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.ListenerPorts.Length"); i++)
            {
                describeLoadBalancerAttributeResponse_listenerPorts.Add(context.StringValue("DescribeLoadBalancerAttribute.ListenerPorts[" + i + "]"));
            }
            describeLoadBalancerAttributeResponse.ListenerPorts = describeLoadBalancerAttributeResponse_listenerPorts;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal> describeLoadBalancerAttributeResponse_listenerPortsAndProtocal = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal listenerPortAndProtocal = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal();
                listenerPortAndProtocal.ListenerPort     = context.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal[" + i + "].ListenerPort");
                listenerPortAndProtocal.ListenerProtocal = context.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal[" + i + "].ListenerProtocal");

                describeLoadBalancerAttributeResponse_listenerPortsAndProtocal.Add(listenerPortAndProtocal);
            }
            describeLoadBalancerAttributeResponse.ListenerPortsAndProtocal = describeLoadBalancerAttributeResponse_listenerPortsAndProtocal;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol> describeLoadBalancerAttributeResponse_listenerPortsAndProtocol = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol listenerPortAndProtocol = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol();
                listenerPortAndProtocol.ListenerPort     = context.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerPort");
                listenerPortAndProtocol.ListenerProtocol = context.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerProtocol");

                describeLoadBalancerAttributeResponse_listenerPortsAndProtocol.Add(listenerPortAndProtocol);
            }
            describeLoadBalancerAttributeResponse.ListenerPortsAndProtocol = describeLoadBalancerAttributeResponse_listenerPortsAndProtocol;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer> describeLoadBalancerAttributeResponse_backendServers = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer>();

            for (int i = 0; i < context.Length("DescribeLoadBalancerAttribute.BackendServers.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer backendServer = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer();
                backendServer.ServerId = context.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].ServerId");
                backendServer.Weight   = context.IntegerValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].Weight");

                describeLoadBalancerAttributeResponse_backendServers.Add(backendServer);
            }
            describeLoadBalancerAttributeResponse.BackendServers = describeLoadBalancerAttributeResponse_backendServers;

            return(describeLoadBalancerAttributeResponse);
        }
Пример #2
0
        public static DescribeLoadBalancerAttributeResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeLoadBalancerAttributeResponse describeLoadBalancerAttributeResponse = new DescribeLoadBalancerAttributeResponse();

            describeLoadBalancerAttributeResponse.HttpResponse       = _ctx.HttpResponse;
            describeLoadBalancerAttributeResponse.RequestId          = _ctx.StringValue("DescribeLoadBalancerAttribute.RequestId");
            describeLoadBalancerAttributeResponse.LoadBalancerId     = _ctx.StringValue("DescribeLoadBalancerAttribute.LoadBalancerId");
            describeLoadBalancerAttributeResponse.ResourceGroupId    = _ctx.StringValue("DescribeLoadBalancerAttribute.ResourceGroupId");
            describeLoadBalancerAttributeResponse.LoadBalancerName   = _ctx.StringValue("DescribeLoadBalancerAttribute.LoadBalancerName");
            describeLoadBalancerAttributeResponse.LoadBalancerStatus = _ctx.StringValue("DescribeLoadBalancerAttribute.LoadBalancerStatus");
            describeLoadBalancerAttributeResponse.RegionId           = _ctx.StringValue("DescribeLoadBalancerAttribute.RegionId");
            describeLoadBalancerAttributeResponse.RegionIdAlias      = _ctx.StringValue("DescribeLoadBalancerAttribute.RegionIdAlias");
            describeLoadBalancerAttributeResponse.Address            = _ctx.StringValue("DescribeLoadBalancerAttribute.Address");
            describeLoadBalancerAttributeResponse.AddressType        = _ctx.StringValue("DescribeLoadBalancerAttribute.AddressType");
            describeLoadBalancerAttributeResponse.VpcId                          = _ctx.StringValue("DescribeLoadBalancerAttribute.VpcId");
            describeLoadBalancerAttributeResponse.VSwitchId                      = _ctx.StringValue("DescribeLoadBalancerAttribute.VSwitchId");
            describeLoadBalancerAttributeResponse.NetworkType                    = _ctx.StringValue("DescribeLoadBalancerAttribute.NetworkType");
            describeLoadBalancerAttributeResponse.InternetChargeType             = _ctx.StringValue("DescribeLoadBalancerAttribute.InternetChargeType");
            describeLoadBalancerAttributeResponse.AutoReleaseTime                = _ctx.LongValue("DescribeLoadBalancerAttribute.AutoReleaseTime");
            describeLoadBalancerAttributeResponse.Bandwidth                      = _ctx.IntegerValue("DescribeLoadBalancerAttribute.Bandwidth");
            describeLoadBalancerAttributeResponse.LoadBalancerSpec               = _ctx.StringValue("DescribeLoadBalancerAttribute.LoadBalancerSpec");
            describeLoadBalancerAttributeResponse.CreateTime                     = _ctx.StringValue("DescribeLoadBalancerAttribute.CreateTime");
            describeLoadBalancerAttributeResponse.CreateTimeStamp                = _ctx.LongValue("DescribeLoadBalancerAttribute.CreateTimeStamp");
            describeLoadBalancerAttributeResponse.EndTime                        = _ctx.StringValue("DescribeLoadBalancerAttribute.EndTime");
            describeLoadBalancerAttributeResponse.EndTimeStamp                   = _ctx.LongValue("DescribeLoadBalancerAttribute.EndTimeStamp");
            describeLoadBalancerAttributeResponse.PayType                        = _ctx.StringValue("DescribeLoadBalancerAttribute.PayType");
            describeLoadBalancerAttributeResponse.MasterZoneId                   = _ctx.StringValue("DescribeLoadBalancerAttribute.MasterZoneId");
            describeLoadBalancerAttributeResponse.SlaveZoneId                    = _ctx.StringValue("DescribeLoadBalancerAttribute.SlaveZoneId");
            describeLoadBalancerAttributeResponse.AddressIPVersion               = _ctx.StringValue("DescribeLoadBalancerAttribute.AddressIPVersion");
            describeLoadBalancerAttributeResponse.CloudType                      = _ctx.StringValue("DescribeLoadBalancerAttribute.CloudType");
            describeLoadBalancerAttributeResponse.RenewalDuration                = _ctx.IntegerValue("DescribeLoadBalancerAttribute.RenewalDuration");
            describeLoadBalancerAttributeResponse.RenewalStatus                  = _ctx.StringValue("DescribeLoadBalancerAttribute.RenewalStatus");
            describeLoadBalancerAttributeResponse.RenewalCycUnit                 = _ctx.StringValue("DescribeLoadBalancerAttribute.RenewalCycUnit");
            describeLoadBalancerAttributeResponse.HasReservedInfo                = _ctx.StringValue("DescribeLoadBalancerAttribute.HasReservedInfo");
            describeLoadBalancerAttributeResponse.ReservedInfoOrderType          = _ctx.StringValue("DescribeLoadBalancerAttribute.ReservedInfoOrderType");
            describeLoadBalancerAttributeResponse.ReservedInfoInternetChargeType = _ctx.StringValue("DescribeLoadBalancerAttribute.ReservedInfoInternetChargeType");
            describeLoadBalancerAttributeResponse.ReservedInfoBandwidth          = _ctx.StringValue("DescribeLoadBalancerAttribute.ReservedInfoBandwidth");
            describeLoadBalancerAttributeResponse.ReservedInfoActiveTime         = _ctx.StringValue("DescribeLoadBalancerAttribute.ReservedInfoActiveTime");
            describeLoadBalancerAttributeResponse.DeleteProtection               = _ctx.StringValue("DescribeLoadBalancerAttribute.DeleteProtection");
            describeLoadBalancerAttributeResponse.AssociatedCenId                = _ctx.StringValue("DescribeLoadBalancerAttribute.AssociatedCenId");
            describeLoadBalancerAttributeResponse.AssociatedCenStatus            = _ctx.StringValue("DescribeLoadBalancerAttribute.AssociatedCenStatus");
            describeLoadBalancerAttributeResponse.CloudInstanceType              = _ctx.StringValue("DescribeLoadBalancerAttribute.CloudInstanceType");
            describeLoadBalancerAttributeResponse.CloudInstanceId                = _ctx.StringValue("DescribeLoadBalancerAttribute.CloudInstanceId");
            describeLoadBalancerAttributeResponse.TunnelType                     = _ctx.StringValue("DescribeLoadBalancerAttribute.TunnelType");
            describeLoadBalancerAttributeResponse.CloudInstanceUid               = _ctx.LongValue("DescribeLoadBalancerAttribute.CloudInstanceUid");
            describeLoadBalancerAttributeResponse.SupportPrivateLink             = _ctx.BooleanValue("DescribeLoadBalancerAttribute.SupportPrivateLink");
            describeLoadBalancerAttributeResponse.BusinessStatus                 = _ctx.StringValue("DescribeLoadBalancerAttribute.BusinessStatus");
            describeLoadBalancerAttributeResponse.ModificationProtectionStatus   = _ctx.StringValue("DescribeLoadBalancerAttribute.ModificationProtectionStatus");
            describeLoadBalancerAttributeResponse.ModificationProtectionReason   = _ctx.StringValue("DescribeLoadBalancerAttribute.ModificationProtectionReason");

            List <string> describeLoadBalancerAttributeResponse_listenerPorts = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeLoadBalancerAttribute.ListenerPorts.Length"); i++)
            {
                describeLoadBalancerAttributeResponse_listenerPorts.Add(_ctx.StringValue("DescribeLoadBalancerAttribute.ListenerPorts[" + i + "]"));
            }
            describeLoadBalancerAttributeResponse.ListenerPorts = describeLoadBalancerAttributeResponse_listenerPorts;

            List <string> describeLoadBalancerAttributeResponse_labels = new List <string>();

            for (int i = 0; i < _ctx.Length("DescribeLoadBalancerAttribute.Labels.Length"); i++)
            {
                describeLoadBalancerAttributeResponse_labels.Add(_ctx.StringValue("DescribeLoadBalancerAttribute.Labels[" + i + "]"));
            }
            describeLoadBalancerAttributeResponse.Labels = describeLoadBalancerAttributeResponse_labels;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal> describeLoadBalancerAttributeResponse_listenerPortsAndProtocal = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal>();

            for (int i = 0; i < _ctx.Length("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal listenerPortAndProtocal = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocal();
                listenerPortAndProtocal.ListenerPort     = _ctx.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal[" + i + "].ListenerPort");
                listenerPortAndProtocal.ListenerProtocal = _ctx.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocal[" + i + "].ListenerProtocal");

                describeLoadBalancerAttributeResponse_listenerPortsAndProtocal.Add(listenerPortAndProtocal);
            }
            describeLoadBalancerAttributeResponse.ListenerPortsAndProtocal = describeLoadBalancerAttributeResponse_listenerPortsAndProtocal;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol> describeLoadBalancerAttributeResponse_listenerPortsAndProtocol = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol>();

            for (int i = 0; i < _ctx.Length("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol listenerPortAndProtocol = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_ListenerPortAndProtocol();
                listenerPortAndProtocol.ListenerPort     = _ctx.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerPort");
                listenerPortAndProtocol.ListenerProtocol = _ctx.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerProtocol");
                listenerPortAndProtocol.ListenerForward  = _ctx.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ListenerForward");
                listenerPortAndProtocol.ForwardPort      = _ctx.IntegerValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].ForwardPort");
                listenerPortAndProtocol.Description      = _ctx.StringValue("DescribeLoadBalancerAttribute.ListenerPortsAndProtocol[" + i + "].Description");

                describeLoadBalancerAttributeResponse_listenerPortsAndProtocol.Add(listenerPortAndProtocol);
            }
            describeLoadBalancerAttributeResponse.ListenerPortsAndProtocol = describeLoadBalancerAttributeResponse_listenerPortsAndProtocol;

            List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer> describeLoadBalancerAttributeResponse_backendServers = new List <DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer>();

            for (int i = 0; i < _ctx.Length("DescribeLoadBalancerAttribute.BackendServers.Length"); i++)
            {
                DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer backendServer = new DescribeLoadBalancerAttributeResponse.DescribeLoadBalancerAttribute_BackendServer();
                backendServer.ServerId    = _ctx.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].ServerId");
                backendServer.Weight      = _ctx.IntegerValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].Weight");
                backendServer.Type        = _ctx.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].Type");
                backendServer.ServerIp    = _ctx.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].ServerIp");
                backendServer.VpcId       = _ctx.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].VpcId");
                backendServer.Description = _ctx.StringValue("DescribeLoadBalancerAttribute.BackendServers[" + i + "].Description");

                describeLoadBalancerAttributeResponse_backendServers.Add(backendServer);
            }
            describeLoadBalancerAttributeResponse.BackendServers = describeLoadBalancerAttributeResponse_backendServers;

            return(describeLoadBalancerAttributeResponse);
        }