public static DescribeDrdsInstanceResponse Unmarshall(UnmarshallerContext context)
        {
            DescribeDrdsInstanceResponse describeDrdsInstanceResponse = new DescribeDrdsInstanceResponse();

            describeDrdsInstanceResponse.HttpResponse = context.HttpResponse;
            describeDrdsInstanceResponse.RequestId    = context.StringValue("DescribeDrdsInstance.RequestId");
            describeDrdsInstanceResponse.Success      = context.BooleanValue("DescribeDrdsInstance.Success");

            DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data data = new DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data();
            data.DrdsInstanceId     = context.StringValue("DescribeDrdsInstance.Data.DrdsInstanceId");
            data.Type               = context.StringValue("DescribeDrdsInstance.Data.Type");
            data.RegionId           = context.StringValue("DescribeDrdsInstance.Data.RegionId");
            data.ZoneId             = context.StringValue("DescribeDrdsInstance.Data.ZoneId");
            data.Description        = context.StringValue("DescribeDrdsInstance.Data.Description");
            data.NetworkType        = context.StringValue("DescribeDrdsInstance.Data.NetworkType");
            data.Status             = context.StringValue("DescribeDrdsInstance.Data.Status");
            data.CreateTime         = context.LongValue("DescribeDrdsInstance.Data.CreateTime");
            data.Version            = context.LongValue("DescribeDrdsInstance.Data.Version");
            data.Specification      = context.StringValue("DescribeDrdsInstance.Data.Specification");
            data.VpcCloudInstanceId = context.StringValue("DescribeDrdsInstance.Data.VpcCloudInstanceId");

            List <DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip> data_vips = new List <DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip>();

            for (int i = 0; i < context.Length("DescribeDrdsInstance.Data.Vips.Length"); i++)
            {
                DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip vip = new DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip();
                vip.IP        = context.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].IP");
                vip.Port      = context.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].Port");
                vip.Type      = context.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].Type");
                vip.VpcId     = context.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].VpcId");
                vip.VswitchId = context.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].VswitchId");

                data_vips.Add(vip);
            }
            data.Vips = data_vips;
            describeDrdsInstanceResponse.Data = data;

            return(describeDrdsInstanceResponse);
        }
Beispiel #2
0
        public static DescribeDrdsInstanceResponse Unmarshall(UnmarshallerContext _ctx)
        {
            DescribeDrdsInstanceResponse describeDrdsInstanceResponse = new DescribeDrdsInstanceResponse();

            describeDrdsInstanceResponse.HttpResponse = _ctx.HttpResponse;
            describeDrdsInstanceResponse.RequestId    = _ctx.StringValue("DescribeDrdsInstance.RequestId");
            describeDrdsInstanceResponse.Success      = _ctx.BooleanValue("DescribeDrdsInstance.Success");

            DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data data = new DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data();
            data.DrdsInstanceId     = _ctx.StringValue("DescribeDrdsInstance.Data.DrdsInstanceId");
            data.Type               = _ctx.StringValue("DescribeDrdsInstance.Data.Type");
            data.RegionId           = _ctx.StringValue("DescribeDrdsInstance.Data.RegionId");
            data.ZoneId             = _ctx.StringValue("DescribeDrdsInstance.Data.ZoneId");
            data.Description        = _ctx.StringValue("DescribeDrdsInstance.Data.Description");
            data.NetworkType        = _ctx.StringValue("DescribeDrdsInstance.Data.NetworkType");
            data.Status             = _ctx.StringValue("DescribeDrdsInstance.Data.Status");
            data.CreateTime         = _ctx.LongValue("DescribeDrdsInstance.Data.CreateTime");
            data.Version            = _ctx.LongValue("DescribeDrdsInstance.Data.Version");
            data.InstanceSeries     = _ctx.StringValue("DescribeDrdsInstance.Data.InstanceSeries");
            data.InstanceSpec       = _ctx.StringValue("DescribeDrdsInstance.Data.InstanceSpec");
            data.VpcCloudInstanceId = _ctx.StringValue("DescribeDrdsInstance.Data.VpcCloudInstanceId");
            data.InstRole           = _ctx.StringValue("DescribeDrdsInstance.Data.InstRole");
            data.CommodityCode      = _ctx.StringValue("DescribeDrdsInstance.Data.CommodityCode");
            data.ExpireDate         = _ctx.LongValue("DescribeDrdsInstance.Data.ExpireDate");
            data.VersionAction      = _ctx.StringValue("DescribeDrdsInstance.Data.VersionAction");
            data.Label              = _ctx.StringValue("DescribeDrdsInstance.Data.Label");
            data.MasterInstanceId   = _ctx.StringValue("DescribeDrdsInstance.Data.MasterInstanceId");
            data.MachineType        = _ctx.StringValue("DescribeDrdsInstance.Data.MachineType");
            data.OrderInstanceId    = _ctx.StringValue("DescribeDrdsInstance.Data.OrderInstanceId");
            data.MysqlVersion       = _ctx.IntegerValue("DescribeDrdsInstance.Data.MysqlVersion");
            data.StorageType        = _ctx.StringValue("DescribeDrdsInstance.Data.StorageType");
            data.ResourceGroupId    = _ctx.StringValue("DescribeDrdsInstance.Data.ResourceGroupId");
            data.ProductVersion     = _ctx.StringValue("DescribeDrdsInstance.Data.ProductVersion");

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

            for (int i = 0; i < _ctx.Length("DescribeDrdsInstance.Data.ReadOnlyDBInstanceIds.Length"); i++)
            {
                data_readOnlyDBInstanceIds.Add(_ctx.StringValue("DescribeDrdsInstance.Data.ReadOnlyDBInstanceIds[" + i + "]"));
            }
            data.ReadOnlyDBInstanceIds = data_readOnlyDBInstanceIds;

            List <DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip> data_vips = new List <DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip>();

            for (int i = 0; i < _ctx.Length("DescribeDrdsInstance.Data.Vips.Length"); i++)
            {
                DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip vip = new DescribeDrdsInstanceResponse.DescribeDrdsInstance_Data.DescribeDrdsInstance_Vip();
                vip.Dns        = _ctx.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].Dns");
                vip.ExpireDays = _ctx.LongValue("DescribeDrdsInstance.Data.Vips[" + i + "].ExpireDays");
                vip.Port       = _ctx.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].Port");
                vip.Type       = _ctx.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].Type");
                vip.VpcId      = _ctx.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].VpcId");
                vip.VswitchId  = _ctx.StringValue("DescribeDrdsInstance.Data.Vips[" + i + "].VswitchId");

                data_vips.Add(vip);
            }
            data.Vips = data_vips;
            describeDrdsInstanceResponse.Data = data;

            return(describeDrdsInstanceResponse);
        }